/* ============================================
   EMITRUST LOGIN — styles/login.css
   Brand: ink left panel, off-white right, teal accents
   Fonts: Syne (headings) + Inter (body)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    --teal:    #06AAC5;
    --teal-dk: #0891a8;
    --ink:     #0D0D0D;
    --body:    #5A5A5A;
    --muted:   #9A9A9A;
    --off:     #F5F5F3;
    --border:  #E8E8E5;
    --white:   #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    font-family: 'Inter', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    background: var(--off);
    color: var(--ink);
    overflow-x: hidden;
}

/* ============================================
   SPLIT LAYOUT
   ============================================ */
.login-page {
    display: flex;
    min-height: 100vh;
}

/* LEFT PANEL — dark ink brand side */
.login-left {
    width: 420px;
    flex-shrink: 0;
    background: var(--ink);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}

/* Subtle teal rule at top */
.login-left::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--teal);
}

.left-brand {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
}

.left-brand-square {
    width: 38px;
    height: 38px;
    background: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: var(--white);
    flex-shrink: 0;
}

.left-brand-name {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--white);
    letter-spacing: 0.06em;
    line-height: 1.1;
}

.left-brand-sub {
    font-size: 0.65rem;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 2px;
}

.left-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 0;
}

.left-body h2 {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.left-body h2 span {
    color: var(--teal);
}

.left-body p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.7;
    max-width: 280px;
}

.left-features {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.left-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
}

.left-feature i {
    color: var(--teal);
    font-size: 0.875rem;
    width: 16px;
    flex-shrink: 0;
}

.left-footer {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.25);
    letter-spacing: 0.04em;
}

/* RIGHT PANEL — form side */
.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background: var(--off);
}

.login-box {
    width: 100%;
    max-width: 400px;
}

.login-box-header {
    margin-bottom: 2.5rem;
}

.login-box-header h1 {
    font-family: 'Syne', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.login-box-header p {
    font-size: 0.875rem;
    color: var(--muted);
}

/* ============================================
   FORM
   ============================================ */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-bottom: 0.45rem;
}

.form-group input {
    width: 100%;
    height: 48px;
    border: 1px solid var(--border);
    background: var(--white);
    padding: 0 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s;
    border-radius: 0;
    appearance: none;
}

.form-group input::placeholder { color: var(--muted); }

.form-group input:focus {
    border-color: var(--teal);
    background: var(--white);
}

/* Submit */
.btn-login {
    width: 100%;
    height: 48px;
    background: var(--ink);
    color: var(--white);
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn-login:hover    { background: var(--teal); }
.btn-login:disabled { opacity: 0.6; cursor: not-allowed; }

/* Links */
.form-links {
    margin-top: 1.75rem;
}

.form-links p {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.form-links a {
    color: var(--teal);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.82rem;
    transition: color 0.2s;
}

.form-links a:hover { color: var(--teal-dk); }

.form-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.25rem 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .login-left { width: 320px; padding: 2.5rem 2rem; }
    .left-body h2 { font-size: 1.6rem; }
}

@media (max-width: 700px) {
    .login-page { flex-direction: column; }

    .login-left {
        width: 100%;
        padding: 1.5rem;
        min-height: auto;
    }

    .left-body { padding: 1.5rem 0; }
    .left-body h2 { font-size: 1.4rem; }
    .left-body p { display: none; }
    .left-features { display: none; }
    .left-footer { display: none; }

    .login-right {
        padding: 2rem 1.25rem;
        align-items: flex-start;
    }

    .login-box { max-width: 100%; }
}