section {
    border-radius: 20px;
    margin-top: 4%
}

.login-hero {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 4% 0;
    border-radius: 20px
}

.login-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9
}

.login-section {
    padding: 3rem 0;
    background: #f8f9fa;
    min-height: 70vh
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px
}

.login-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: start
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 2px solid #f8f9fa
}

.card-header h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 0
}

.card-badge {
    background: #e3f2fd;
    color: #0052cc;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600
}

.login-form {
    padding: 0 2rem 2rem
}

.error-message {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem
}

.error-icon {
    font-size: 1.2rem;
    color: #e53e3e
}

.error-content strong {
    color: #e53e3e;
    display: block;
    margin-bottom: 0.25rem
}

.error-content p {
    color: #742a2a;
    margin: 0;
    font-size: 0.9rem
}

.form-group {
    margin-bottom: 1.5rem
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #2c3e50
}

.label-icon {
    font-size: 1.1rem
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: white
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1)
}

.form-help {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.5rem
}

.forgot-password {
    color: #0052cc;
    text-decoration: none;
    font-weight: 500
}

.forgot-password:hover {
    text-decoration: underline
}

.checkbox-group {
    margin: 1.5rem 0
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    font-weight: 500;
    color: #2c3e50
}

.checkbox-label input[type="checkbox"] {
    display: none
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease
}

.checkbox-label input[type="checkbox"]:checked+.checkmark {
    background: #667eea;
    border-color: #667eea
}

.checkbox-label input[type="checkbox"]:checked+.checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.8rem;
    font-weight: bold
}

.login-btn {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, #0052cc, #0066cc);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3)
}

.login-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
    color: #6c757d;
    font-size: 0.9rem
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef
}

.login-divider span {
    background: white;
    padding: 0 1rem;
    position: relative
}

.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem
}

.social-btn {
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1)
}

.google-btn:hover {
    border-color: #db4437;
    color: #db4437
}

.yandex-btn:hover {
    border-color: #ffcc00;
    color: #ff3333
}

.login-footer {
    text-align: center;
    color: #6c757d
}

.register-link {
    color: #0052cc;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.3s ease
}

.register-link:hover {
    color: #0047b3
}

.link-icon {
    font-size: 1.1rem
}

.login-sidebar {
    position: sticky;
    top: 2rem
}

.benefits-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem
}

.benefits-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa
}

.benefits-header h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin: 0
}

.benefits-icon {
    font-size: 2rem
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem
}

.benefit-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
    flex-shrink: 0
}

.benefit-content h4 {
    font-size: 1rem;
    color: #2c3e50;
    margin: 0 0 0.5rem 0
}

.benefit-content p {
    color: #6c757d;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4
}

.security-notice {
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem
}

.security-icon {
    font-size: 1.5rem;
    color: #48bb78
}

.security-text strong {
    color: #22543d;
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.25rem
}

.security-text p {
    color: #38a169;
    margin: 0;
    font-size: 0.8rem
}

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px)
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    border-radius: 24px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s ease;
    overflow: hidden
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #f1f5f9
}

.modal-header h3 {
    margin: 0;
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 700
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease
}

.modal-close:hover {
    background: #f1f5f9;
    color: #475569
}

.modal-body {
    padding: 0 2rem 2rem
}

.recovery-progress {
    margin-bottom: 2rem
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px
}

.step-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid transparent
}

.step-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap
}

.step-line {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin: 0 4px;
    transition: all 0.3s ease
}

.step-circle.active .step-number {
    background: #0052cc;
    color: white;
    border-color: #0052cc
}

.step-circle.active .step-label {
    color: #0052cc;
    font-weight: 600
}

.step-circle.completed .step-number {
    background: #10b981;
    color: white;
    border-color: #10b981
}

.step-circle.completed .step-label {
    color: #10b981
}

.step-line.active {
    background: #0052cc
}

.recovery-step {
    display: none;
    text-align: center
}

.recovery-step.active {
    display: block;
    animation: fadeInUp 0.5s ease
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 1rem
}

.step-icon.success {
    color: #10b981
}

.recovery-step h4 {
    font-size: 1.25rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-weight: 700
}

.step-description {
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.5
}

.recovery-form {
    text-align: left
}

.btn-full {
    width: 100%;
    justify-content: center;
    margin-top: 1rem
}

.timer {
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    margin: 1rem 0;
    color: #64748b;
    font-size: 0.9rem
}

.timer.active {
    color: #0052cc
}

.timer.expired {
    color: #10b981
}

#resend-code {
    color: #0052cc;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer
}

#resend-code:hover {
    text-decoration: underline
}

.password-requirements {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 4px
}

.requirement {
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease
}

.requirement::before {
    content: '○';
    font-size: 0.7rem
}

.requirement.valid {
    color: #10b981
}

.requirement.valid::before {
    content: '✓';
    color: #10b981
}

.requirement.invalid {
    color: #ef4444
}

.requirement.invalid::before {
    content: '✕';
    color: #ef4444
}

.success-actions {
    margin-top: 2rem
}

@media (max-width:768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
        border-radius: 20px
    }

    .modal-header {
        padding: 1.5rem 1.5rem 1rem
    }

    .modal-body {
        padding: 0 1.5rem 1.5rem
    }

    .step-label {
        font-size: 0.7rem
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.8rem
    }
}

@media (max-width:480px) {
    .modal-content {
        margin: 5% auto
    }

    .progress-steps {
        gap: 4px
    }

    .step-label {
        display: none
    }
}

@media (max-width:1024px) {
    .login-layout {
        grid-template-columns: 1fr;
        gap: 2rem
    }

    .login-sidebar {
        position: static
    }

    .benefits-card {
        max-width: 500px;
        margin: 0 auto
    }
}

@media (max-width:768px) {
    .login-hero h1 {
        font-size: 2rem
    }

    .login-card {
        margin-bottom: 1.5rem
    }

    .card-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        padding: 1.5rem 1.5rem 1rem
    }

    .login-form {
        padding: 0 1.5rem 1.5rem
    }

    .social-login {
        grid-template-columns: 1fr
    }

    .benefits-list {
        gap: 1rem
    }

    .benefit-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem
    }

    .modal-content {
        margin: 5% auto;
        width: 95%
    }
}

@media (max-width:480px) {
    .container {
        padding: 0 15px
    }

    .login-hero {
        padding: 60px 0 30px
    }

    .login-section {
        padding: 1.5rem 0
    }

    .benefits-card {
        padding: 1.5rem
    }

    .modal-body {
        padding: 1.5rem
    }
}