/* ============================================
   MDC Platonus — Login Screen Styles
   ============================================ */

/* ── Custom Properties ── */
:root {
    --navy: #003366;
    --navy-dark: #001d3d;
    --navy-light: #004080;
    --burgundy: #bd0926;
    --burgundy-hover: #9e0720;
    --burgundy-light: #d4213e;
    --light-grey: #f8fafc;
    --border-grey: #e2e8f0;
    --bg-grey: #f0f2f5;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #a0aec0;
    --text-label: #94a3b8;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.08);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    --radius-sm: 4px;
    --radius-md: 6px;
}

/* ── Reset & Base ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: var(--font);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Animations ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Login Container ── */
.login-container {
    display: flex;
    min-height: 100vh;
}

/* ── Left Panel (Illustration) ── */
.login-left {
    flex: 1;
    background: var(--light-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.login-left::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,51,102,0.03) 0%, transparent 70%);
    pointer-events: none;
}

.login-left svg {
    max-width: 400px;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
}

/* ── Right Panel (Form) ── */
.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--white);
}

.login-card {
    width: 100%;
    max-width: 420px;
    animation: fadeInUp 0.6s ease-out;
}

/* ── Logo ── */
.login-logo {
    margin-bottom: 36px;
}

.logo-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 9.5px;
    font-weight: 600;
    color: var(--burgundy);
    letter-spacing: 2.2px;
    text-transform: uppercase;
    margin-top: 5px;
    opacity: 0.85;
}

/* ── Heading ── */
.login-heading {
    font-size: 19px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.3;
}

/* ── Tabs ── */
.login-tabs {
    display: flex;
    margin-bottom: 24px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-grey);
}

.tab {
    flex: 1;
    padding: 11px 16px;
    border: none;
    background: var(--light-grey);
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font);
    position: relative;
}

.tab.active {
    background: var(--burgundy);
    color: var(--white);
    box-shadow: inset 0 -2px 0 rgba(0,0,0,0.15);
}

.tab:not(.active):hover {
    background: #edf2f7;
    color: #475569;
}

/* ── Form ── */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 12px;
    color: var(--text-label);
    margin-bottom: 6px;
    font-weight: 500;
    letter-spacing: 0.1px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-grey);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font);
    color: var(--text-primary);
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: auto;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.08);
}

.form-group input::placeholder {
    color: #cbd5e1;
}

/* ── Login Button ── */
.btn-login {
    width: 100%;
    padding: 12px;
    background: var(--burgundy);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    font-family: var(--font);
    margin-top: 6px;
    letter-spacing: 0.2px;
}

.btn-login:hover {
    background: var(--burgundy-hover);
    box-shadow: 0 4px 12px rgba(189, 9, 38, 0.25);
}

.btn-login:active {
    transform: scale(0.985);
    box-shadow: 0 2px 6px rgba(189, 9, 38, 0.2);
}

/* ── Footer Links ── */
.login-links {
    margin-top: 28px;
    text-align: center;
}

.login-links a {
    display: block;
    color: var(--burgundy);
    font-size: 13px;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.2s ease;
    font-weight: 450;
}

.login-links a:hover {
    color: var(--burgundy-hover);
    text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .login-container {
        flex-direction: column;
    }
    .login-left {
        display: none;
    }
    .login-right {
        min-height: 100vh;
        padding: 32px 20px;
    }
}
