:root {
    /* Light Theme Palette */
    --primary: #2563eb;
    /* Professional Blue */
    --primary-hover: #1d4ed8;
    --bg-body: #f1f5f9;
    /* Light Slate Background */
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --input-bg: #f8fafc;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-body);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Subtle background pattern */
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Main Card */
.login-card {
    background: var(--bg-card);
    width: 100%;
    max-width: 1000px;
    height: 600px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s ease forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Left Side - Branding Image */
.brand-section {
    flex: 1;
    position: relative;
    background-color: var(--primary);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    color: white;
}

/* Overlay Image */
.brand-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://picsum.photos/seed/computerlab/800/1000') center/cover no-repeat;
    opacity: 0.4;
    mix-blend-mode: overlay;
}

.brand-content {
    position: relative;
    z-index: 2;
}

.brand-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 15px;
}

.brand-content p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* Right Side - Form */
.form-section {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header {
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.form-header span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Modern Floating Inputs */
.input-group {
    position: relative;
    margin-bottom: 24px;
}

.input-field {
    width: 100%;
    padding: 16px 16px 16px 45px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.95rem;
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
}

/* Hide default placeholder for custom floating label */
.input-field::placeholder {
    color: transparent;
}

.input-label {
    position: absolute;
    left: 45px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    transition: var(--transition);
    background-color: transparent;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

/* Focus & Active States */
.input-field:focus,
.input-field:not(:placeholder-shown) {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.input-field:focus~.input-label,
.input-field:not(:placeholder-shown)~.input-label {
    top: 0;
    left: 12px;
    transform: translateY(-50%) scale(0.85);
    color: var(--primary);
    background: var(--bg-card);
    padding: 0 6px;
    font-weight: 500;
}

.input-field:focus~.input-icon {
    color: var(--primary);
}

/* Password Toggle */
.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
}

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

/* Actions (Remember / Forgot) */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 0.85rem;
}

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

.remember-me input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

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

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

/* Modern Button */
.btn-submit {
    width: 100%;
    padding: 14px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.btn-submit:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    display: none;
}

/* Toast Notification (Light Mode) */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: white;
    padding: 16px 24px;
    border-radius: 10px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 4px solid transparent;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left-color: var(--success);
}

.toast.error {
    border-left-color: var(--error);
}

.toast-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: var(--success);
}

.toast.error .toast-icon {
    color: var(--error);
}

.toast-message {
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 900px) {
    .login-card {
        flex-direction: column;
        height: auto;
        max-width: 500px;
        margin: 20px;
    }

    .brand-section {
        padding: 30px;
        min-height: 150px;
    }

    .form-section {
        padding: 30px;
    }

    body {
        overflow-y: auto;
        align-items: flex-start;
        padding-top: 40px;
    }
}



