/* Modern Dribbble-Style Login Portal */
:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --primary-glow: rgba(79, 70, 229, 0.35);
    --primary-focus: rgba(79, 70, 229, 0.12);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --card-bg: #ffffff;
    --card-border: rgba(255, 255, 255, 0.8);
    --input-bg: #f8fafc;
    --shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 10% 20%, #eef2ff 0%, #f0fdf4 40%, #fdf4ff 90%);
    padding: 24px;
    color: var(--text-main);
    overflow-x: hidden;
}

/* Background Ambient Orbs */
.ambient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}
.orb-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    background: linear-gradient(135deg, #a7f3d0, #bfdbfe);
}
.orb-2 {
    width: 450px;
    height: 450px;
    bottom: -120px;
    left: -100px;
    background: linear-gradient(135deg, #fbcfe8, #c7d2fe);
}

.login-card-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.09), 0 0 0 1px rgba(226, 232, 240, 0.6);
    padding: 42px 38px;
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

.login-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    min-height: 58px;
}

.login-brand-logo {
    max-height: 72px;
    max-width: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.08));
    transition: transform 0.2s ease;
}

.login-brand-logo:hover {
    transform: scale(1.02);
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 10px 20px -5px var(--primary-glow);
}

.brand-badge svg {
    width: 30px;
    height: 30px;
}

.login-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.login-header p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.input-icon svg {
    width: 18px;
    height: 18px;
}

.form-input {
    width: 100%;
    height: 48px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0 16px 0 44px;
    font-size: 14px;
    color: var(--text-main);
    transition: all 0.2s ease;
    outline: none;
}

.form-input:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-focus);
}

.password-toggle {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px;
}
.password-toggle:hover {
    color: var(--text-main);
}

.form-extras {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
    font-size: 13px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    cursor: pointer;
    user-select: none;
}

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

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

.btn-submit {
    width: 100%;
    height: 50px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 22px -5px var(--primary-glow);
    transition: all 0.2s ease;
}

.btn-submit:hover {
    filter: brightness(0.92);
    transform: translateY(-1px);
    box-shadow: 0 14px 26px -5px var(--primary-glow);
}

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

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.login-feedback {
    display: none;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
}

.login-feedback.error {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fef2f2;
    border: 1px solid #fee2e2;
    color: #dc2626;
}

.login-feedback.success {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ecfdf5;
    border: 1px solid #d1fae5;
    color: #059669;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 12px;
    color: var(--text-muted);
}

.login-footer a {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
}
.login-footer a:hover {
    color: var(--primary);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* v2.9.2 — fixed MNU logo, monochrome (no green) */
.login-brand-mono{display:inline-flex;color:#111;filter:none;border-radius:0}
.login-brand-mono svg{height:54px;width:auto;display:block}
