:root {
    --brand: #12a4e8;
    --text: #0b1220;
    --muted: rgba(11, 18, 32, 0.65);
    --line: rgba(11, 18, 32, 0.12);
    --surface: #fff;

    --shadow: 0 18px 50px rgba(11, 18, 32, 0.1);
    --shadow2: 0 10px 24px rgba(11, 18, 32, 0.12);

    --head:
        "Barlow Condensed", system-ui, -apple-system, Segoe UI, Roboto, Arial,
        sans-serif;
    --body:
        "Outfit", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}
html,
body {
    height: 100%;
}
body {
    margin: 0;
    font-family: var(--body);
    color: var(--text);
    background: var(--surface);
}

/* Same grid/box background as signup image */
.auth-page {
    min-height: calc(100vh - 120px);
    display: flex;
    justify-content: center;
    padding: 80px 16px 80px;
    background:
        linear-gradient(to right, rgba(11, 18, 32, 0.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(11, 18, 32, 0.07) 1px, transparent 1px);
    background-size: 44px 44px;
}

.wrap {
    width: min(980px, 100%);
}

/* Hero like image */
.hero {
    text-align: center;
    margin-bottom: 18px;
}
.hero h1 {
    margin: 0;
    font-family: var(--head);
    font-weight: 800;
    letter-spacing: 1px;
    font-size: clamp(44px, 6vw, 76px);
    line-height: 0.95;
    text-transform: uppercase;
}
.hero h1 span {
    color: var(--brand);
}
.hero p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 400;
}

/* Panel */
.panel {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(11, 18, 32, 0.14);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 18px;
}

/* Small cards (simple, not heavy) */
.mini-cards {
    width: min(720px, 100%);
    margin: 0 auto 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px;
    border-radius: 14px;
    border: 1px solid rgba(11, 18, 32, 0.12);
    background: rgba(255, 255, 255, 0.9);
}
.mini-ico {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(18, 164, 232, 0.1);
    border: 1px solid rgba(18, 164, 232, 0.18);
    color: rgba(11, 18, 32, 0.88);
}
.mini strong {
    display: block;
    font-weight: 900;
    letter-spacing: 0.4px;
    font-size: 13px;
}
.mini small {
    display: block;
    color: var(--muted);
    font-weight: 500;
    font-size: 12px;
    margin-top: 2px;
}

/* Divider */
.divider {
    width: min(760px, 100%);
    margin: 12px auto 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(11, 18, 32, 0.14);
}
.divider span {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.7px;
    color: rgba(11, 18, 32, 0.65);
    text-transform: uppercase;
}

/* Form rows */
form {
    width: min(760px, 100%);
    margin: 0 auto;
}
.row {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 12px;
    align-items: start;
    margin-bottom: 12px;
}

.field input {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(11, 18, 32, 0.14);
    background: #fff;
    outline: none;
    font-family: var(--body);
    font-size: 14px;
}
.field input:focus {
    border-color: rgba(18, 164, 232, 0.55);
    box-shadow: 0 0 0 4px rgba(18, 164, 232, 0.14);
}

.err {
    display: block;
    min-height: 16px;
    margin-top: 6px;
    color: #b42318;
    font-size: 12px;
    font-weight: 600;
}

.btn {
    height: 50px;
    border-radius: 12px;
    font-weight: 900;
    letter-spacing: 0.4px;
    cursor: pointer;
    border: 1px solid transparent;
}
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-outline {
    background: transparent;
    border-color: rgba(11, 18, 32, 0.18);
    color: rgba(11, 18, 32, 0.85);
}
.btn-outline:hover {
    border-color: rgba(18, 164, 232, 0.35);
    box-shadow: var(--shadow2);
}

.btn-primary {
    background: #0c0f14;
    color: #fff;
    box-shadow: var(--shadow2);
}

.hint {
    width: min(760px, 100%);
    margin: 6px auto 0;
    height: 20px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(11, 18, 32, 0.6);
}
.hint.ok {
    color: rgba(22, 101, 52, 0.95);
}
.hint.bad {
    color: rgba(159, 18, 57, 0.95);
}

.foot {
    margin: 16px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}
.foot a {
    color: var(--brand);
    font-weight: 900;
    text-decoration: none;
}

.toast {
    display: none;
    width: min(760px, 100%);
    margin: 12px auto 0;
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid rgba(11, 18, 32, 0.12);
    background: rgba(255, 255, 255, 0.92);
    color: rgba(11, 18, 32, 0.86);
    font-weight: 700;
    box-shadow: var(--shadow2);
}

/* Responsive */
@media (max-width: 860px) {
    .mini-cards {
        grid-template-columns: 1fr;
    }
    .row {
        grid-template-columns: 1fr;
    }
    .btn-primary {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .auth-page {
        padding: 20px !important;
    }
}

#loginBtn {
    background-color: #0da4e8;
    color: #ffffff;
}

/* login: keep same grid behavior but tighter + clean */
.login-grid {
    align-items: start;
}

/* status line center */
.hint {
    margin-top: 10px;
    text-align: center;
    font-size: 13px;
    opacity: 0.8;
    min-height: 18px;
}

/* make buttons same height as inputs */
.form-grid .ghost {
    height: 46px; /* matches input visual height */
    display: inline-flex;
    align-items: center;
    margin-top: -5px;
    justify-content: center;
}

/* mobile stacking (if not already added) */
@media (max-width: 640px) {
    .login-grid {
        grid-template-columns: 1fr;
    }
}
