/* Страница регистрации - стили из Figma */

.register-page {
    padding: 60px 0 100px;
    background: #FFFFFF;
    min-height: calc(100vh - 200px);
}

.register-page .container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 152px;
}

/* Заголовок */
.register-header {
    margin-bottom: 100px;
}

.register-breadcrumbs {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5em;
    letter-spacing: -0.03em;
    color: #8C8F96;
    margin-bottom: 29px;
}

.register-breadcrumbs a {
    color: #8C8F96;
    text-decoration: none;
}

.register-breadcrumbs a:hover {
    text-decoration: underline;
}

.register-breadcrumbs span {
    color: #8C8F96;
}

.register-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 64px;
    line-height: 0.375em;
    letter-spacing: -0.03em;
    color: #8C8F96;
    margin: 0;
}

/* Контент */
.register-content {
    display: grid;
    grid-template-columns: 704px 416px;
    gap: 72px;
    align-items: start;
    overflow: visible;
}

/* Форма регистрации */
.register-form-wrapper {
    width: 100%;
}

.register-form-container {
    background: #F6F6F7;
    border-radius: 30px;
    padding: 60px 46px 100px;
}

.register-alert-container {
    margin-bottom: 32px;
}

.register-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.45;
    border-radius: 16px;
    padding: 14px 18px;
    border: 1px solid transparent;
    box-sizing: border-box;
}

.register-alert__icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
}

.register-alert__text {
    display: block;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.register-alert--error {
    background: rgba(255, 99, 71, 0.12);
    border-color: rgba(255, 99, 71, 0.35);
    color: #B53B27;
}

.register-alert--error .register-alert__icon {
    color: #FF6347;
}

.register-alert--success {
    background: rgba(15, 201, 152, 0.12);
    border-color: rgba(15, 201, 152, 0.3);
    color: #0F8C6E;
}

.register-alert--success .register-alert__icon {
    color: #0FC998;
}

/* Секции формы */
.form-section {
    margin-bottom: 40px;
}

.form-section:last-of-type {
    margin-bottom: 60px;
}

.form-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 64px;
}

.form-section-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.0833333333333333em;
    letter-spacing: -0.03em;
    color: #0FC998;
    margin: 0;
}

.form-section-note {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.2102272510528564em;
    color: #000000;
    margin-top: 17px;
}

/* Строки формы */
.form-row {
    display: grid;
    grid-template-columns: 290px 290px;
    gap: 20px;
    margin-bottom: 20px;
}

.form-field {
    position: relative;
}

.form-field-full {
    grid-column: 1 / -1;
}

/* Поля ввода */
.input-wrapper {
    position: relative;
    width: 100%;
}

.input-wrapper-inn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-wrapper-inn .form-input {
    flex: 1;
}

.register-inn-feedback {
    margin-top: 10px;
    padding: 12px 16px;
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    line-height: 1.35;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
    background: rgba(140, 143, 150, 0.08);
    color: #41444B;
}

.register-inn-feedback[hidden] {
    display: none;
}

.register-inn-feedback::before {
    content: 'ℹ';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-weight: 600;
    font-size: 12px;
    line-height: 1;
}

.register-inn-feedback--error {
    background: rgba(255, 99, 71, 0.12);
    border-color: rgba(255, 99, 71, 0.35);
    color: #B53B27;
}

.register-inn-feedback--error::before {
    content: '!';
    background: rgba(255, 99, 71, 0.15);
    color: #FF6347;
}

.register-inn-feedback--success {
    background: rgba(15, 201, 152, 0.12);
    border-color: rgba(15, 201, 152, 0.3);
    color: #0F8C6E;
}

.register-inn-feedback--success::before {
    content: '✓';
    background: rgba(15, 201, 152, 0.15);
    color: #0FC998;
}

.register-inn-feedback--warning {
    background: rgba(255, 193, 7, 0.16);
    border-color: rgba(255, 193, 7, 0.45);
    color: #8C6C00;
}

.register-inn-feedback--warning::before {
    content: '!';
    background: rgba(255, 193, 7, 0.25);
    color: #8C6C00;
}

/* Кнопка автозаполнения */
.btn-autofill {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: #0FC998;
    border: none;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    flex-shrink: 0;
}

.btn-autofill svg {
    width: 16px;
    height: 16px;
    stroke: #FFFFFF;
}

.btn-autofill:hover {
    background: #0db085;
    transform: scale(1.05);
}

.btn-autofill:active {
    background: #0ba572;
    transform: scale(0.95);
}

.btn-autofill:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #FFFFFF;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.form-input {
    width: 100%;
    height: 40px;
    padding: 0 28px;
    background: #FFFFFF;
    border: none;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 2.25em;
    letter-spacing: -0.03em;
    color: #8C8F96;
    box-sizing: border-box;
    transition: all 0.2s;
}

.form-input::placeholder {
    color: #0FC998;
    opacity: 1;
    font-weight: 600;
}

.form-input::-webkit-input-placeholder {
    color: #0FC998;
    opacity: 1;
    font-weight: 600;
}

.form-input::-moz-placeholder {
    color: #0FC998;
    opacity: 1;
    font-weight: 600;
}

.form-input:-ms-input-placeholder {
    color: #0FC998;
    opacity: 1;
    font-weight: 600;
}

.form-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(15, 201, 152, 0.3);
}

.form-input:required::after {
    content: '*';
    color: #0FC998;
    margin-left: 4px;
}

/* Подсказки */
.form-hint {
    margin-top: 8px;
    margin-left: 28px;
}

.form-hint p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 10px;
    line-height: 1.2102272033691406em;
    color: #000000;
    margin: 0;
}

/* Кнопка регистрации */
.form-submit-wrapper {
    display: flex;
    flex-direction: column;
}

.form-submit-info {
    text-align: center;
    margin-left: 37px;
    margin-top: 16px;
}

.form-submit-info p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 10px;
    line-height: 1.2102272033691406em;
    color: #000000;
    margin: 0;
    max-width: 545px;
}

.btn-register {
    width: 100%;
    height: 40px;
    background: #0FC998;
    border: none;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 2.25em;
    letter-spacing: -0.03em;
    color: #FFFFFF;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-register:hover {
    background: #0db085;
}

.btn-register:active {
    background: #0ba572;
}

/* Сайдбар */
.register-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
    overflow: visible;
}

/* Блоки сайдбара */
.sidebar-block {
    background: #FFFFFF;
    border-radius: 30px;
    padding: 38px 56px 60px;
    position: relative;
}

.sidebar-block-benefits {
    background: #0FC998;
    min-height: 588px;
    position: relative;
    overflow: visible;
    padding: 38px 56px 60px;
}

.benefits-bg-image {
    position: absolute;
    top: -38px;
    left: 8px;
    width: 385px;
    height: 249px;
    z-index: 0;
}

.benefits-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}

.sidebar-block-benefits .sidebar-title {
    position: relative;
    z-index: 1;
    margin-top: 230px;
    margin-bottom: 40px;
}

.sidebar-block-benefits .benefits-list {
    position: relative;
    z-index: 1;
}

.sidebar-block-login {
    background: #F6F6F7;
    padding: 45px 42px 60px;
}

.sidebar-block-support {
    background: #0FC998;
    padding: 33px 60px 60px;
    text-align: center;
}

/* Заголовок сайдбара */
.sidebar-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 0.875em;
    letter-spacing: -0.03em;
    color: #FFFFFF;
    margin: 0 0 40px 0;
}

.sidebar-block-login .sidebar-title {
    color: #0FC998;
    font-size: 32px;
    line-height: 0.875em;
    margin-bottom: 56px;
}

.support-title {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 30px;
    line-height: 0.9333333333333333em;
    letter-spacing: -0.029999999999999999em;
    color: #FFFFFF;
    margin: 20px 0 16px 0;
    text-align: left;
}

/* Список преимуществ */
.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-left: 8px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.benefit-dot {
    width: 10px;
    height: 10px;
    background: #FFFFFF;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
}

.benefit-text {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1em;
    color: #FFFFFF;
}

/* Кнопка входа */
.btn-login {
    width: 156px;
    height: 48px;
    background: #0FC998;
    border: none;
    border-radius: 48px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 2.25em;
    letter-spacing: -0.03em;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: background 0.2s;
    padding: 0;
}

.btn-login img {
    width: 21px;
    height: 24px;
    flex-shrink: 0;
}

.btn-login:hover {
    background: #0db085;
}

/* Поддержка */
.support-icon {
    width: 48px;
    height: 58px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.support-icon img {
    width: 48px;
    height: 58px;
    display: block;
}

.support-phone {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 0.875em;
    letter-spacing: -0.03em;
    color: #FFFFFF;
    text-decoration: none;
    margin: 0 0 8px 0;
}

.support-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.2102272510528564em;
    color: #FFFFFF;
    margin: 0;
    text-align: center;
}

/* Сообщения об ошибках/успехе */
.register-error-message {
    background: #fee;
    color: #c33;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    border: 1px solid #fcc;
}

.register-success-message {
    background: #efe;
    color: #3c3;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    border: 1px solid #cfc;
}

/* Ошибки полей */
.form-input.error {
    border: 1px solid #c33;
    box-shadow: 0 0 0 2px rgba(204, 51, 51, 0.3);
}

.field-error {
    display: block;
    color: #c33;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    margin-top: 4px;
    line-height: 1.2;
}

/* Responsive */
@media (max-width: 1440px) {
    .register-page .container {
        padding: 0 80px;
    }
    
    .register-content {
        grid-template-columns: 1fr 380px;
        gap: 40px;
    }
}

@media (max-width: 1024px) {
    .register-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .register-sidebar {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .sidebar-block {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .register-page .container {
        padding: 0 20px;
    }
    
    .register-title {
        font-size: 48px;
    }
    
    .register-form-container {
        padding: 40px 30px 60px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-section-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .register-sidebar {
        grid-template-columns: 1fr;
    }
}

