/**
 * FDA Products Management System - Login Page Styles
 * Professional and unique login experience
 */

.login-page {
    min-height: 100vh;
    display: flex;
    background: linear-gradient(135deg, #134e4a 0%, #0f766e 50%, #115e59 100%);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.login-page::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(20, 184, 166, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

/* Left Side - Branding */
.login-branding {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    position: relative;
    z-index: 1;
}

.login-branding-content {
    max-width: 500px;
}

.login-branding-logo {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.login-branding-logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.login-branding-logo i {
    font-size: 2.5rem;
    color: #fbbf24;
}

.login-branding h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.login-branding h1 span {
    color: #fbbf24;
}

.login-branding p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.login-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.login-feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fbbf24;
}

.login-feature span {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Right Side - Form */
.login-form-section {
    width: 520px;
    min-height: 100vh;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    z-index: 2;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.15);
}

.login-form-container {
    width: 100%;
    max-width: 380px;
}

.login-form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-form-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.login-form-header p {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form .form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.login-form .input-wrapper {
    position: relative;
}

.login-form .input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.login-form .form-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    font-size: 1rem;
    color: #1e293b;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s;
}

.login-form .form-input:focus {
    outline: none;
    background: #ffffff;
    border-color: #0d9488;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

.login-form .form-input:focus + i,
.login-form .input-wrapper:focus-within i {
    color: #0d9488;
}

.login-form .form-input::placeholder {
    color: #94a3b8;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #0d9488;
}

.remember-me span {
    font-size: 0.875rem;
    color: #64748b;
}

.forgot-password {
    font-size: 0.875rem;
    color: #0d9488;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: #0f766e;
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.35);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn i {
    font-size: 1.1rem;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.login-divider span {
    font-size: 0.875rem;
    color: #94a3b8;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.login-footer p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.login-footer a {
    color: #0d9488;
    font-weight: 600;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Alert Messages */
.login-alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.login-alert-error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.login-alert-success {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* Responsive */
@media (max-width: 1024px) {
    .login-branding {
        display: none;
    }
    
    .login-form-section {
        width: 100%;
        min-height: 100vh;
    }
}

@media (max-width: 480px) {
    .login-form-section {
        padding: 2rem 1.5rem;
    }
    
    .login-form-header h2 {
        font-size: 1.5rem;
    }
}
