/* Login Page Styles */

/* Hero Section */
.hero-section {
    background: var(--background-dark);
    color: var(--text-light);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="login-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(128,128,128,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23login-pattern)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 500px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

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

.hero-description {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.9;
}

.hero-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 24px;
}

.hero-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

/* Login Form */
.login-form-container {
    background: var(--background-primary);
    border-radius: var(--border-radius-lg);
    padding: 48px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    max-width: 450px;
    width: 100%;
}

.form-header {
    text-align: center;
    margin-bottom: 32px;
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

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

.social-login {
    margin-bottom: 32px;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--background-secondary);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-base);
}

.social-btn:hover {
    background: var(--background-primary);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.social-btn .icon {
    font-size: 1.25rem;
}

.divider {
    position: relative;
    text-align: center;
    margin: 32px 0;
}

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

.divider span {
    background: var(--background-primary);
    padding: 0 16px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
}

.login-form {
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--background-secondary);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all var(--transition-base);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

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

.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
}

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

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 0.875rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-secondary);
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

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

.login-btn {
    width: 100%;
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    margin-bottom: 24px;
}

.login-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.form-footer p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.signup-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

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

/* Security Features */
.security-features {
    background: var(--background-secondary);
    padding: 80px 0;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.security-card {
    background: var(--background-primary);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all var(--transition-base);
}

.security-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.security-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--background-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.security-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.security-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Trust Indicators */
.trust-section {
    background: var(--background-primary);
    padding: 80px 0;
}

.trust-content {
    text-align: center;
    margin-bottom: 48px;
}

.trust-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.trust-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.trust-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.trust-stat {
    text-align: center;
}

.trust-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: block;
}

.trust-stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.trust-badge {
    background: var(--background-secondary);
    padding: 16px 24px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
}

.trust-badge .icon {
    font-size: 1.25rem;
    color: var(--primary-color);
}

/* Loading States */
.login-btn.loading {
    position: relative;
    color: transparent;
}

.login-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid var(--text-light);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Form Validation */
.form-group.error input {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

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

.form-error {
    color: var(--primary-color);
    font-size: 0.875rem;
    margin-top: 4px;
    display: none;
}

.form-group.error .form-error {
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .login-form-container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 60px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .login-form-container {
        padding: 32px 24px;
    }
    
    .security-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .security-card {
        padding: 24px;
    }
    
    .trust-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .trust-badges {
        flex-direction: column;
        gap: 16px;
    }
    
    .trust-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .login-form-container {
        padding: 24px 16px;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    .social-buttons {
        gap: 8px;
    }
    
    .form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .trust-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .trust-stat-value {
        font-size: 2rem;
    }
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Focus States */
.login-form-container:focus-within {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px var(--primary-color);
}

/* Interactive Elements */
.social-btn.google:hover {
    border-color: var(--primary-color);
}

.social-btn.github:hover {
    border-color: var(--text-primary);
}

.social-btn.microsoft:hover {
    border-color: var(--primary-color);
}

/* Status Messages */
.status-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-message.success {
    background: var(--background-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.status-message.error {
    background: rgba(255, 0, 0, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.status-message.warning {
    background: var(--background-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* Progress Indicators */
.login-progress {
    width: 100%;
    height: 4px;
    background: var(--background-secondary);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 24px;
}

.login-progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .login-form-container {
        border: 2px solid var(--text-primary);
    }
    
    .form-group input {
        border: 2px solid var(--text-primary);
    }
    
    .login-btn {
        border: 2px solid var(--primary-color);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll,
    .security-card,
    .login-btn,
    .social-btn {
        transition: none;
    }
    
    .login-btn.loading::after {
        animation: none;
    }
}