/* HPSAT INSPACE LLP — authentication (login / signup) styling.
   Approximate agriculture palette; swap the brand colours below for the exact
   hpsat.in values once the logo/brand guide is available. */
:root {
    --brand:    #1b5e20;   /* deep leaf green */
    --brand-2:  #2e7d32;
    --ink:      #1f2937;
    --muted:    #5b6472;
    --bg-alt:   #f4f7f4;
    --border:   #e2e8e2;
    --radius:   12px;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--ink);
    line-height: 1.55;
}
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Centered auth layout ---- */
.auth-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f3d16, #1b5e20 55%, #2e7d32);
    display: flex;
}
.auth-wrap {
    margin: auto;
    width: 100%;
    max-width: 440px;
    padding: 32px 20px;
}
.auth-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 36px 32px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .22);
}

/* ---- Brand ---- */
.brand {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    margin-bottom: 6px;
}
.brand-mark { font-weight: 800; font-size: 1.6rem; letter-spacing: 1px; color: var(--brand); }
.brand-sub  { font-size: .7rem; color: var(--muted); letter-spacing: 2px; }

/* ---- Form ---- */
.auth-card h1 { text-align: center; font-size: 1.4rem; margin: 4px 0 20px; }
.auth-card form label { display: block; font-weight: 600; margin-top: 12px; font-size: .92rem; }
.auth-card form input {
    width: 100%;
    padding: 11px;
    margin-top: 6px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
}
.auth-card form .helptext { display: block; color: var(--muted); font-size: .8rem; margin-top: 4px; }
.auth-card form .errorlist { margin: 6px 0 0; padding-left: 18px; color: #a12; font-size: .85rem; }
.auth-card button,
.auth-card [type="submit"] {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}
.auth-card button:hover,
.auth-card [type="submit"]:hover { background: var(--brand-2); }
.auth-card p { text-align: center; margin-top: 16px; font-size: .9rem; color: var(--muted); }

/* ---- Messages ---- */
.messages { list-style: none; margin: 0 0 16px; padding: 0; }
.messages li { padding: 10px 14px; border-radius: 8px; margin-bottom: 8px; background: var(--bg-alt); font-size: .9rem; }
.messages li.error   { background: #fdecea; color: #a12; }
.messages li.success { background: #eaf6ec; color: #1b5e20; }

/* ---- Footer line ---- */
.auth-legal { text-align: center; color: rgba(255, 255, 255, .78); font-size: .82rem; margin: 20px 0 0; }

/* Language switcher (top-right of the card) */
.auth-lang { display: flex; justify-content: flex-end; margin: -6px -6px 6px 0; }
.lang-form { margin: 0; }
.lang-form select {
    padding: 5px 8px; font: inherit; font-size: 13px; color: #1f2937; background: #fff;
    border: 1px solid #e2e8e2; border-radius: 8px; cursor: pointer;
}
