/* Login Page Specific Styles */

/* Main Login Content */
.login-main {
    padding: 3rem 0;
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
}

.login-content {
    max-width: 400px;
    margin: 0 auto;
}

.login-step {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.login-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    text-align: center;
    margin-bottom: 2rem;
}

.step-header h1 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.step-header p {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Login Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    background: var(--accent-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #10b981;
}

.form-group input::placeholder {
    color: var(--text-secondary);
}

/* Login Options */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
}

.checkbox-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.forgot-link {
    color: #10b981;
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Divider */
.login-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.login-divider span {
    background: var(--bg-primary);
    padding: 0 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
}

/* Social Login */
.social-login {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.social-btn:hover {
    border-color: #10b981;
    background: rgba(26, 26, 46, 0.7);
}

.social-icon {
    font-size: 1.2rem;
}

/* Signup Link */
.signup-link {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.signup-link .link {
    color: #10b981;
    text-decoration: none;
    margin-left: 0.5rem;
}

.signup-link .link:hover {
    text-decoration: underline;
}

/* Verification Code */
.verification-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.verification-code {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.code-input {
    width: 40px;
    height: 50px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--accent-color);
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    transition: border-color 0.3s;
}

.code-input:focus {
    outline: none;
    border-color: #10b981;
}

.verification-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-link {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9rem;
}

.btn-link:hover {
    color: var(--text-primary);
}

/* Security Check */
.security-check {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(26, 26, 46, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.security-icon {
    font-size: 0.7rem;
    font-weight: 600;
    color: #10b981;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.security-info {
    flex: 1;
}

.security-info h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.security-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.security-status {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}

.status-dot.verified {
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.status-dot.error {
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

/* Security Progress */
.security-progress {
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #3b82f6 100%);
    border-radius: 2px;
    width: 0%;
    transition: width 2s ease-in-out;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Success Content */
.success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: rgba(26, 26, 46, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.success-icon {
    font-size: 0.8rem;
    font-weight: 600;
    color: #10b981;
    padding: 1rem 2rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 30px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.success-info {
    text-align: center;
}

.success-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.success-info p {
    color: var(--text-secondary);
    margin: 0;
}

.login-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-primary);
    margin: 10% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.modal-header p {
    color: var(--text-secondary);
    margin: 0;
}

.forgot-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.modal-footer {
    text-align: center;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--text-secondary);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-main {
        padding: 2rem 0;
    }
    
    .login-content {
        max-width: 350px;
        padding: 0 1rem;
    }
    
    .step-header h1 {
        font-size: 1.8rem;
    }
    
    .social-login {
        flex-direction: column;
    }
    
    .verification-code {
        gap: 0.5rem;
    }
    
    .code-input {
        width: 35px;
        height: 45px;
        font-size: 1rem;
    }
    
    .verification-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .login-actions {
        flex-direction: column;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .login-content {
        max-width: 100%;
    }
    
    .step-header h1 {
        font-size: 1.6rem;
    }
    
    .code-input {
        width: 32px;
        height: 42px;
        font-size: 0.9rem;
    }
    
    .security-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .security-info {
        order: 2;
    }
    
    .security-status {
        order: 1;
    }
}
