/* Login page — relies on theme.css for palette & brand */
body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-shell {
    width: 100%;
    max-width: 1040px;
    min-height: 640px;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

/* ----------------------------- Brand panel ----------------------------- */
.brand-panel {
    position: relative;
    background: linear-gradient(150deg, var(--green-darker) 0%, var(--green-dark) 50%, var(--green) 100%);
    color: #eafbf2;
    padding: 46px 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.brand-panel::after {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 85% 15%, rgba(255,255,255,0.10), transparent 38%),
        radial-gradient(circle at 10% 95%, rgba(255,255,255,0.06), transparent 35%);
    pointer-events: none;
}
.brand-panel > * { position: relative; z-index: 1; }

.brand-panel .brand { margin-bottom: 52px; }

.brand-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
    max-width: 420px;
}
.brand-tagline {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(234, 251, 242, 0.85);
    max-width: 390px;
    margin-bottom: 34px;
}
.brand-features { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.brand-features li {
    display: flex; align-items: center; gap: 12px;
    font-size: 14.5px; font-weight: 500;
    color: rgba(255,255,255,0.94);
}
.tick {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 6px;
    background: rgba(255,255,255,0.18);
    color: #b9f0d2; font-size: 12px; font-weight: 800;
}
.brand-footer { font-size: 12.5px; color: rgba(234, 251, 242, 0.6); }

/* ----------------------------- Form panel ----------------------------- */
.form-panel { display: flex; align-items: center; justify-content: center; padding: 48px 52px; }
.form-wrapper { width: 100%; max-width: 360px; }

.form-logo-mobile { display: none; margin-bottom: 28px; }

.form-title { font-size: 27px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 7px; }
.form-subtitle { font-size: 14.5px; color: var(--muted); margin-bottom: 28px; }

.alert {
    background: var(--danger-bg);
    border: 1px solid #f3c6c1;
    border-left: 4px solid var(--danger);
    color: var(--danger);
    padding: 12px 14px; border-radius: 8px;
    font-size: 13.5px; font-weight: 500;
    margin-bottom: 20px;
}

.field { margin-bottom: 18px; }
.field label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--ink); margin-bottom: 8px;
}
.field input[type="text"],
.field input[type="password"] {
    width: 100%;
    padding: 13px 15px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14.5px; font-family: inherit;
    color: var(--ink); background: #fbfdfc;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.input-group { position: relative; }
.input-group input { padding-right: 46px; }
.field input:focus {
    outline: none; border-color: var(--green); background: #fff;
    box-shadow: 0 0 0 4px rgba(10, 138, 79, 0.13);
}
.toggle-pw {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
    color: var(--muted); padding: 6px; display: flex; opacity: 0.7;
    transition: color .15s, opacity .15s;
}
.toggle-pw svg { width: 18px; height: 18px; }
.toggle-pw:hover, .toggle-pw.active { color: var(--green); opacity: 1; }

.form-row {
    display: flex; align-items: center; justify-content: space-between;
    margin: 4px 0 24px; font-size: 13px;
}
.checkbox { display: flex; align-items: center; gap: 8px; color: var(--muted); cursor: pointer; }
.checkbox input { accent-color: var(--green); width: 15px; height: 15px; }
.link { color: var(--green-dark); text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; }

.btn-primary { box-shadow: 0 8px 20px rgba(10, 138, 79, 0.25); }

.form-hint { text-align: center; margin-top: 24px; font-size: 12.5px; color: var(--muted); }

@media (max-width: 860px) {
    .login-shell { grid-template-columns: 1fr; max-width: 460px; min-height: auto; }
    .brand-panel { display: none; }
    .form-logo-mobile { display: flex; }
    .form-panel { padding: 40px 30px; }
}
