/* Modern Professional Login Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 50%, #0d9488 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

body::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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.05"/><circle cx="20" cy="80" r="0.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.login-container {
    display: flex;
    width: 100%;
    max-width: 950px;
    height: 520px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Left Side - Branding */
.login-brand {
    flex: 1;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    position: relative;
}

.login-brand::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 200 200"><path d="M0,100 Q50,50 100,100 T200,100 L200,200 L0,200 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    pointer-events: none;
}

.brand-content {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
}

.brand-logo {
    font-size: 4rem;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.logo-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 0;
}

.brand-content h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.brand-content > p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    font-weight: 300;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    opacity: 0.95;
}

.feature i {
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

/* Right Side - Login Form */
.login-form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    background: white;
}

.login-form-container {
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    font-size: 2rem;
    color: #0d9488;
    margin-bottom: 8px;
    font-weight: 700;
}

.login-header p {
    color: #6b7280;
    font-size: 1rem;
}

/* Alert Styles */
.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.alert-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-error i {
    color: #dc2626;
}

.alert-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #bbf7d0 100%);
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-success i {
    color: #166534;
}

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    color: #9ca3af;
    font-size: 1rem;
    z-index: 2;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 50px 14px 50px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.95rem;
    background: white;
    transition: all 0.3s ease;
    outline: none;
}

.input-wrapper input:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.input-wrapper input::placeholder {
    color: #9ca3af;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9ca3af;
    font-size: 1rem;
    transition: color 0.3s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.toggle-password:hover {
    color: #14b8a6;
}

.form-options {
    display: flex;
    justify-content: flex-end;
    margin-top: -10px;
}

.forgot-link {
    color: #14b8a6;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.forgot-link:hover {
    color: #0d9488;
    text-decoration: underline;
}

.login-btn {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.login-btn:hover {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(20, 184, 166, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.login-footer {
    text-align: center;
    margin-top: 20px;
}

.login-footer p {
    color: #6b7280;
    font-size: 0.9rem;
}

.login-footer a {
    color: #14b8a6;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.login-footer a:hover {
    color: #0d9488;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
    }
    
    .login-container {
        flex-direction: column;
        max-width: 100%;
        height: auto;
        min-height: auto;
        margin: 20px;
        border-radius: 16px;
        max-height: none;
        overflow-y: visible;
    }
    
    .login-brand {
        padding: 40px 20px;
    }
    
    .brand-content h1 {
        font-size: 2rem;
    }
    
    .brand-logo {
        font-size: 3rem;
    }
    
    .brand-features {
        display: none;
    }
    
    .login-form-section {
        padding: 40px 20px;
        overflow-y: auto;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }
    
    .login-container {
        margin: 10px;
        overflow-y: visible;
    }
    
    .login-header h2 {
        font-size: 1.5rem;
    }
    
    .input-wrapper input {
        padding: 14px 14px 14px 45px;
    }
    
    .login-btn {
        padding: 14px;
        font-size: 1rem;
    }
    
    .login-form-section {
        overflow-y: visible;
    }
    
    .login-form-container {
        overflow-y: visible;
    }
}