.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.auth-form {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 450px;
    border: 1px solid #e9ecef;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.8rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.auth-form .btn-primary {
    width: 100%;
    padding: 0.875rem;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.auth-links {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
}

.auth-links a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
    color: #0056b3;
}

.registration-note {
    background: #e7f3ff;
    border: 1px solid #b8daff;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #0c5460;
}

/* Адаптивность */
@media (max-width: 768px) {
    .auth-container {
        padding: 1rem 0;
        min-height: calc(100vh - 160px);
    }
    
    .auth-form {
        margin: 0 1rem;
        padding: 2rem 1.5rem;
        max-width: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .auth-form h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .auth-form {
        margin: 0 0.5rem;
        padding: 1.5rem 1rem;
    }
    
    .auth-form h2 {
        font-size: 1.3rem;
    }
}

/* Стили для юридических соглашений */
.agreements-section {
    margin: 1rem 0;
    padding: 0.75rem 0;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.agreement-label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    margin-bottom: 0.75rem !important;
    font-weight: normal !important;
    line-height: 1.5 !important;
    cursor: pointer;
}

.agreement-label:last-child {
    margin-bottom: 0 !important;
}

.agreement-checkbox {
    margin-top: 0.2rem !important;
    flex-shrink: 0 !important;
    width: 16px !important;
    height: 16px !important;
    accent-color: #007bff;
    cursor: pointer;
}

.agreement-text {
    flex: 1;
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.5;
}

.agreement-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.agreement-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.required {
    color: #dc3545;
    font-weight: bold;
}

/* Стиль для отмеченных чекбоксов */
.agreement-checkbox:checked + .agreement-text {
    color: #28a745;
}

.agreement-checkbox:checked + .agreement-text .agreement-link {
    color: #28a745;
}

.agreement-checkbox:checked + .agreement-text .agreement-link:hover {
    color: #1e7e34;
}

/* Адаптивность */
@media (max-width: 768px) {
    .agreements-section {
        margin: 0.75rem 0;
        padding: 0.5rem 0;
    }
    
    .agreement-text {
        font-size: 0.85rem;
    }
    
    .agreement-label {
        gap: 0.6rem !important;
        margin-bottom: 0.6rem !important;
    }
    
    .agreement-checkbox {
        width: 15px !important;
        height: 15px !important;
    }
}

@media (max-width: 480px) {
    .agreements-section {
        margin: 0.5rem 0;
        padding: 0.4rem 0;
    }
    
    .agreement-text {
        font-size: 0.8rem;
    }
    
    .agreement-label {
        gap: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }
}

/* Состояние фокуса */
.agreement-checkbox:focus {
    outline: 2px solid #007bff;
    outline-offset: 1px;
}