* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #F5F7FA;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 20% 30%, rgba(9, 174, 165, 0.08) 0%, rgba(245, 247, 250, 0) 70%),
                radial-gradient(ellipse at 90% 70%, rgba(255, 119, 0, 0.05) 0%, rgba(245, 247, 250, 0) 60%);
    pointer-events: none;
}

/* Центрированная колонка */
.login-wrapper {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.login-card {
    background: #FFFFFF;
    border-radius: 48px;
    padding: 44px 40px;
    transition: all 0.3s ease;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.08);
}

/* Логотип по центру */
.brand-logo {
    display: flex;
    justify-content: center;
    text-align: center;
    margin-bottom: 24px;
    width: 100%;
    transition: .5s;
}

.brand-logo:hover{
    transform: translateY(-3px);
}

.brand-logo img {
    height: 100px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

/* Заголовок формы */
.card-header {
    text-align: center;
    margin-bottom: 32px;
}

.card-header h3 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #1A1C1E;
    margin-bottom: 8px;
}

.card-header p {
    font-size: 14px;
    color: #7A8087;
}

/* Поля формы */
.input-group {
    margin-bottom: 20px;
}

.input-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #3A3F44;
    margin-bottom: 8px;
}

.input-field {
    width: 100%;
    background: #F8F9FB;
    border: 1.5px solid #E2E6EA;
    border-radius: 24px;
    padding: 15px 18px;
    font-size: 15px;
    font-weight: 500;
    color: #1A1C1E;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.input-field:focus {
    outline: none;
    border-color: #09AEA5;
    background: #FFFFFF;
}

.input-field::placeholder {
    color: #ADB3B9;
    font-weight: 400;
}

/* Чекбокс */
.checkbox-group {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    margin: 24px 0 28px;
    cursor: pointer;
    justify-content: center;
    flex-wrap: nowrap;
}

.checkbox-group input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #09AEA5;
}

.checkbox-group label {
    font-size: 13px;
    color: #5E646B;
    cursor: pointer;
}

.checkbox-group a {
    color: #09AEA5;
    text-decoration: none;
    font-weight: 500;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* Кнопка входа */
.btn-login {
    width: 100%;
    background: linear-gradient(135deg, #09AEA5 0%, #0A938C 100%);
    border: none;
    border-radius: 32px;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(9, 174, 165, 0.3);
}

.btn-login:active {
    transform: translateY(1px);
}

.btn-login.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-login.loading span {
    visibility: hidden;
}

.btn-login.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Ошибка */
.error-message {
    background: #FEF2F2;
    border-radius: 20px;
    padding: 14px 18px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #DC2626;
    font-weight: 500;
    border: 1px solid #FEE2E2;
}

.error-message::before {
    content: "⚠️";
    font-size: 16px;
}

.additional-links {
    text-align: center;
    margin-top: 8px;
}

.additional-links a {
    color: #7A8087;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.additional-links a:hover {
    color: #09AEA5;
}

/* Блок фич (центрированный) */
.features-centered {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    margin-top: 36px;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 1px solid #EEF2F6;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    min-width: 160px;
    flex: 0 1 auto;
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: #F8FAFE;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #E9EDF2;
    transition: all 0.2s;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: #09AEA5;
    stroke-width: 1.7;
}

.feature-text h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1A1C1E;
    margin-bottom: 6px;
}

.feature-text span {
    font-size: 13px;
    color: #6C7278;
    line-height: 1.4;
    display: block;
}

.footer-note {
    text-align: center;
    margin-top: 28px;
    font-size: 11px;
    color: #ADB3B9;
}

/* Модальное окно (без изменений) */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px 24px 10px 24px;
    border-bottom: 1px solid #eef2f6;
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
}

.modal-close {
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: #ef4444;
}

.modal-body {
    padding: 30px 24px;
    text-align: center;
}

.modal-icon {
    margin-bottom: 20px;
    color: #09AEA5;
}

.modal-message {
    font-size: 1rem;
    line-height: 1.5;
    color: #334155;
    margin: 0;
}

.modal-footer {
    padding: 16px 24px 24px 24px;
    text-align: center;
    border-top: 1px solid #eef2f6;
}

.modal-btn-ok {
    background: linear-gradient(135deg, #09AEA5 0%, #0A938C 100%);
    border: none;
    padding: 10px 28px;
    border-radius: 40px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn-ok:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #0A938C, #09AEA5);
}

.modal-btn-ok:active {
    transform: translateY(1px);
}

@media (max-width: 550px) {
    .login-card {
        padding: 32px 24px;
        border-radius: 36px;
    }
    .features-centered {
        gap: 24px;
    }
    .feature-item {
        min-width: 140px;
    }
    .brand-logo img {
        height: 75px;
    }
}

@media (max-width: 480px) {
    .feature-item {
        min-width: 100%;
    }
    .features-centered {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
}