* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: #f4f7fc;
    color: #1f2a3e;
    line-height: 1.4;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center; /* вертикальное центрирование */
}
.main-grid {
    width: 100%;
    /* убираем margin и лишние отступы */
}
.col-center {
    max-width: 560px;   /* стало шире (было 500px) */
    width: 100%;
    margin: 0 auto;
}
/* остальные стили без изменений (кнопки, шапка, футер и т.д.) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 20px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
    gap: 6px;
}
.btn-light {
    background: #fff;
    border: 1px solid #cddfe7;
    color: #2c6e9e;
}
.btn-light:hover {
    background: #eef3f8;
    border-color: #b6cfdf;
}
.btn-primary {
    background: #2d7a4b;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.btn-primary:hover {
    background: #23683e;
}
.btn-success {
    background: #2a8e4a;
    color: white;
}
.btn-big {
    padding: 12px 24px;
    font-size: 16px;
    width: 100%;
}
.head {
    background: white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 10;
}
.flex {
    display: flex;
}
.ai-center {
    align-items: center;
}
.jc-between {
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 26px;
    color: #1f2a3e;
}
.logo-heart {
    font-size: 32px;
    color: #e94e77;
}
.logo-accent {
    color: #2d7a4b;
}
.head_menu {
    display: flex;
    list-style: none;
    gap: 28px;
    margin: 0 20px;
}
.head_menu a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.head_menu a i {
    font-size: 18px;
    color: #7f8c8d;
}
.bt_top_form ul {
    display: flex;
    gap: 12px;
    list-style: none;
}
.bbox {
    background: white;
    border-radius: 24px;
    padding: 32px 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #e6edf2;
}
.ta_center {
    text-align: center;
}
.fbold {
    font-weight: 700;
}
.form-row {
    margin-bottom: 20px;
}
.inp_grd {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbdae3;
    border-radius: 40px;
    font-size: 15px;
    background: #fff;
    transition: 0.2s;
}
.inp_grd:focus {
    outline: none;
    border-color: #2d7a4b;
    box-shadow: 0 0 0 2px rgba(45,122,75,0.1);
}
label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 6px;
    color: #2c3e50;
}
.login-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    flex-wrap: wrap;
    gap: 12px;
}
.forgot-link {
    font-size: 13px;
    color: #2c6e9e;
    text-decoration: none;
}
.forgot-link:hover {
    text-decoration: underline;
}
.btn-reg {
    background: #f7b32b;
    color: #2c3e2f;
    font-weight: 700;
    padding: 12px;
    font-size: 18px;
    border-radius: 40px;
    width: 100%;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 10px;
}
.btn-reg:hover {
    background: #e5a021;
}
hr {
    margin: 24px 0;
    border-color: #e2ebf2;
}
.social-auth-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}
.social-auth-row .block {
    background: #f0f4f8;
    width: 44px;
    height: 44px;
    border-radius: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #3b5c7a;
    transition: 0.2s;
    text-decoration: none;
}
.social-auth-row .block:hover {
    background: #e2eaf1;
}
.register-link {
    margin-top: 24px;
    font-size: 14px;
    text-align: center;
}
.register-link a {
    color: #2d7a4b;
    font-weight: 600;
    text-decoration: none;
}
.register-link a:hover {
    text-decoration: underline;
}
.error-message {
    background: #fee2e2;
    border-left: 4px solid #e53e3e;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #c53030;
    font-size: 14px;
}
@media (max-width: 600px) {
    .bbox {
        padding: 24px 20px;
    }
    .head_menu {
        gap: 14px;
        margin: 10px 0;
    }
}
.back-link {
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
}
.back-link a {
    color: #2c3e50;
    font-weight: 600;
    text-decoration: none;
}
.back-link a:hover {
    text-decoration: underline;
}
.success-message {
    background-color: #e9f7ef;
    border-left: 4px solid #2d7a4b;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    color: #1e5a38;
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
}

.success-message p {
    margin: 0;
}

.success-message i {
    font-size: 20px;
    margin-right: 8px;
    vertical-align: middle;
}
