/* Modern Login Page Styles */

/* Hero Section */
.login-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    width: 100%;
}

.login-hero .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.login-hero .hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: left;
}

.login-hero .hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
    text-align: left;
}

.login-hero .hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-hero .hero-visual i {
    font-size: 8rem;
    opacity: 0.8;
}

/* Login Form Section */
.login-section {
    padding: 5rem 0;
    background: white;
    width: 100%;
}

.form-container {
    max-width: 500px;
    margin: 0 auto;
    background: #f8fafc;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.form-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.form-subtitle {
    text-align: center;
    color: #718096;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Account Type Toggle */
.account-type-toggle {
    text-align: center;
    margin-bottom: 1rem;
}

.toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.toggle-label {
    font-weight: 600;
    color: #2d3748;
    font-size: 1rem;
}

.toggle {
    position: relative;
    width: 56px;
    height: 32px;
    flex: 0 0 auto;
}

.toggle input {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 100%;
    margin: 0;
    background: #e2e8f0;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    outline: none;
    cursor: pointer;
    transition: background 0.2s ease;
    position: relative;
}

.toggle input:checked {
    background: #667eea;
}

.toggle input::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 26px;
    height: 26px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.toggle input:checked::after {
    transform: translateX(24px);
}

.role-hint {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.5rem;
}

.inline-pill {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #667eea;
    color: white;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Form Fields */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2d3748;
    font-size: 0.95rem;
}

.form-group input[type="email"],
.form-group input[type="password"] {
    padding: 0.875rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Submit Button */
.form-submit {
    margin-top: 1rem;
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.form-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* CTA Section */
.login-cta {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    text-align: center;
    padding: 4rem 0;
    width: 100%;
}

.login-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.login-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-btn.primary {
    background: white;
    color: #f5576c;
}

.cta-btn.secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cta-btn.secondary:hover {
    background: white;
    color: #f5576c;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-hero .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .login-hero .hero-title,
    .login-hero .hero-subtitle {
        text-align: center;
    }
    
    .login-hero .hero-title {
        font-size: 2rem;
    }
    
    .login-hero .hero-visual i {
        font-size: 6rem;
    }
    
    .form-container {
        margin: 0 1rem;
        padding: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .login-cta h2 {
        font-size: 2rem;
    }
    
    .login-cta p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .login-hero {
        padding: 3rem 0;
    }
    
    .login-hero .hero-title {
        font-size: 1.75rem;
    }
    
    .login-hero .hero-subtitle {
        font-size: 1rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .form-title {
        font-size: 1.75rem;
    }
    
    .login-cta h2 {
        font-size: 1.75rem;
    }
    
    .login-cta p {
        font-size: 1rem;
    }
    
    .toggle-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .toggle {
        margin: 0.5rem 0;
    }
}
