/* Login Container */
.login-container {
    display: flex;
    min-height: calc(100vh - 70px);
}

.login-features {
    flex: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark-blue) 100%);
    color: white;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.login-features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="rgba(255,255,255,0.05)" d="M0,0 L100,0 L100,100 L0,100 Z"></path></svg>');
    opacity: 0.1;
    background-size: cover;
}

.features-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
}

.features-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 700;
}

.features-content p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.features-list {
    list-style: none;
}

.features-list li {
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.feature-text h3 {
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: 600;
}
.feature-text h3 span{
    color: var(--secondary);
}

.feature-text p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 0;
    line-height: 1.5;
}

.login-form-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-form-wrapper {
    width: 100%;
    max-width: 400px;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--text);
    font-weight: 700;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

.login-form {
    background: var(--card);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px var(--shadow);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
}

.input-with-icon {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background-color: var(--bg);
    color: var(--text);
    font-size: 16px;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.1);
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input {
    accent-color: var(--primary);
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-form .login-btn {
    width: 100%;
    padding: 14px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 20px;
}
.login-form .login-btn:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
}

.divider {
    text-align: center;
    position: relative;
    margin: 25px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 45%;
    height: 1px;
    background-color: var(--border);
}

.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 45%;
    height: 1px;
    background-color: var(--border);
}

.social-login {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background-color: var(--bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.social-btn:hover {
    background-color: var(--light-blue);
    border-color: var(--primary);
}

.register-link {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.register-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--card);
    color: var(--text);
    padding: 0 0 20px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary);
}

/* Responsive Design */
@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
    }
    
    .login-features {
        padding: 40px 30px;
    }
    
    .features-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .login-form-container {
        padding: 30px 20px;
    }
    
    .social-login {
        flex-direction: column;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .login-form {
        padding: 25px 20px;
    }
    
    .features-content h2 {
        font-size: 26px;
    }
    
    .features-content p {
        font-size: 16px;
    }
    
    .features-list li {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        align-self: center;
    }
}



.code-input-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}
.code-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    border: 2px solid var(--border);
    border-radius: 8px;
    background-color: var(--bg);
    color: var(--text);
    transition: all 0.2s;
    text-transform: uppercase;
}
.code-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(94, 86, 255, 0.1);
    outline: none;
}
.code-input.filled {
    border-color: var(--primary);
}
.resend-code {
    text-align: center;
    margin-bottom: 25px;
    font-size: 14px;
}
.resend-code p {
    margin-bottom: 5px;
    color: var(--text-secondary);
}
.countdown {
    color: var(--primary);
    font-weight: 500;
}
@media (max-width: 480px) {
    .code-input {
        width: 40px;
        height: 50px;
        font-size: 20px;
    }
    
    .code-input-container {
        gap: 8px;
    }
}
/* Animation for success state */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}
.shake {
    animation: shake 0.6s cubic-bezier(.36,.07,.19,.97) both;
    border-color: #dc3545 !important;
}


.password-strength {
    margin-top: 10px;
}
.strength-meter {
    width: 100%;
    height: 6px;
    background-color: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}
.strength-bar {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: width 0.3s ease, background-color 0.3s ease;
}
.strength-bar.weak {
    width: 33%;
    background-color: #dc3545;
}
.strength-bar.medium {
    width: 66%;
    background-color: #ffc107;
}
.strength-bar.strong {
    width: 100%;
    background-color: #28a745;
}
.strength-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}
#strength-value {
    font-weight: 600;
}
.validation-message {
    font-size: 13px;
    margin-top: 5px;
    min-height: 20px;
}
.validation-message.error {
    color: #dc3545;
}
.validation-message.success {
    color: #28a745;
}