/* ==========================================================================
   MMTS Operations Authority - Login Stylesheet
   ========================================================================== */

:root {
    /* Light Theme: Multi-shade White-Grey */
    --bg-body: #edf0f5;
    --bg-card: #f8f9fb;
    --border-color: #c4ccd8;
    --text-main: #0c0f14;
    --text-muted: #5e6878;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --radius: 14px;
}

[data-theme="dark"] {
    /* Dark Theme: True Black & Charcoal Grey */
    --bg-body: #0b0c0e;
    --bg-card: #18191d;
    --border-color: #2b2d35;
    --text-main: #f4f5f7;
    --text-muted: #8b919e;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --shadow: 0 15px 35px rgba(0, 0, 0, 0.65);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
    transition: background-color 0.2s, border-color 0.2s !important;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 440px;
    padding: 2.5rem 2.25rem;
}

.brand-header {
    text-align: center;
    margin-bottom: 2rem;
}

.brand-icon-box {
    width: 72px;
    height: 72px;
    background: transparent;
    border: none;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    overflow: visible;
    padding: 0;
}

.brand-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
}

.brand-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.brand-header p {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.35rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.form-control {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    margin-top: 0.5rem;
    transition: all 0.2s;
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5);
}

.alert-error {
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: #fb7185;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.825rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.theme-toggle-fixed {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Theme Toggle Button Icons (driven instantly by [data-theme]) */
[data-theme="light"] #theme-sun {
    display: none !important;
}
[data-theme="light"] #theme-moon {
    display: block !important;
}
[data-theme="dark"] #theme-sun {
    display: block !important;
}
[data-theme="dark"] #theme-moon {
    display: none !important;
}
