@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
    --gold: #c89a33;
    --gold-2: #e3b34c;
    --gold-dark: #926916;
    --ink: #050505;
    --ink-soft: #101010;
    --paper: #f4f4f2;
    --white: #fff;
    --text: #1a1a1a;
    --muted: #6d6d6d;
    --radius: 28px;
    --shadow: 0 18px 50px rgba(0,0,0,.16);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: #ededeb;
    color: var(--text);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.page-shell {
    width: min(1180px, calc(100% - 28px));
    min-height: calc(100vh - 28px);
    margin: 14px auto;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.site-header {
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 34px;
    background: var(--ink);
    color: #fff;
}

.brand {
    display: flex;
    align-items: center;
    min-width: 205px;
}

.brand img {
    display: block;
    width: 215px;
    max-width: 100%;
    max-height: 72px;
    object-fit: contain;
    object-position: left center;
}

.header-label {
    color: #d8d8d8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.login-layout {
    min-height: calc(100vh - 114px);
    display: grid;
    grid-template-columns: 1.08fr .92fr;
}

.login-visual {
    position: relative;
    min-height: 620px;
    padding: 72px 64px;
    display: flex;
    align-items: flex-end;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(0,0,0,.93), rgba(0,0,0,.62) 45%, rgba(0,0,0,.25)),
        url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?auto=format&fit=crop&w=1800&q=85')
        center / cover no-repeat;
}

.visual-copy {
    position: relative;
    z-index: 2;
    max-width: 610px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--gold-2);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.visual-copy h1 {
    margin: 0;
    font-size: clamp(38px, 4vw, 58px);
    line-height: .98;
    letter-spacing: -2px;
    font-weight: 800;
    text-transform: uppercase;
}

.gold-line {
    width: 54px;
    height: 4px;
    margin: 24px 0;
    background: var(--gold);
}

.visual-copy p {
    max-width: 540px;
    margin: 0;
    color: #e7e7e7;
    font-size: 14px;
    line-height: 1.75;
}

.login-side {
    padding: 64px 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f4;
}

.login-card {
    width: min(430px, 100%);
}

.login-card .icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    border-radius: 12px;
    background: var(--ink);
    color: var(--gold-2);
    font-size: 21px;
}

.login-card h2 {
    margin: 0;
    font-size: 29px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.login-card .intro {
    margin: 10px 0 28px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

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

label {
    display: block;
    margin-bottom: 7px;
    color: #252525;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.input-wrap {
    position: relative;
}

.input-wrap i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #8a8a8a;
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    height: 50px;
    padding: 0 15px 0 43px;
    border: 1px solid #d8d8d4;
    border-radius: 7px;
    background: #fff;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200,154,51,.13);
}

.btn-primary {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
    color: #111;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .18s ease, filter .18s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.alert {
    margin-bottom: 20px;
    padding: 13px 14px;
    border-radius: 7px;
    font-size: 12px;
    line-height: 1.5;
}

.alert-error {
    border: 1px solid #e3b6b6;
    background: #fff0f0;
    color: #8b2525;
}

.alert-ok {
    border: 1px solid #cbd9b5;
    background: #f4f9ec;
    color: #3c6023;
}

.security-note {
    margin-top: 19px;
    color: #777;
    font-size: 10px;
    line-height: 1.55;
}

.dashboard {
    min-height: calc(100vh - 114px);
    padding: 46px;
    background: #f6f6f3;
}

.dashboard-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.dashboard-top h1 {
    margin: 0;
    font-size: clamp(28px, 3vw, 40px);
    letter-spacing: -1.4px;
}

.logout-form { margin: 0; }

.btn-dark {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid #252525;
    border-radius: 5px;
    background: #090909;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.module-card {
    min-height: 165px;
    padding: 24px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e6e6e0;
    box-shadow: 0 10px 25px rgba(0,0,0,.05);
}

.module-card i {
    color: var(--gold);
    font-size: 24px;
}

.module-card h3 {
    margin: 18px 0 7px;
    font-size: 16px;
    text-transform: uppercase;
}

.module-card p {
    margin: 0;
    color: #747474;
    font-size: 12px;
    line-height: 1.55;
}

@media (max-width: 900px) {
    .login-layout { grid-template-columns: 1fr; }
    .login-visual { min-height: 360px; padding: 48px 36px; }
    .login-side { padding: 46px 26px; }
    .module-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
    .page-shell {
        width: 100%;
        min-height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    .site-header {
        height: 76px;
        padding: 0 18px;
    }

    .brand img {
        width: 165px;
        max-height: 58px;
    }

    .header-label { display: none; }

    .login-visual {
        min-height: 320px;
        padding: 38px 24px;
    }

    .visual-copy h1 {
        font-size: clamp(31px, 10vw, 42px);
    }

    .login-side { padding: 38px 22px; }

    .dashboard { padding: 30px 20px; }

    .dashboard-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .module-grid { grid-template-columns: 1fr; }
}
