/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --white:      #F2F0EF;
    --green:      #087832;
    --green-dark: #065c26;
    --grey-mid:   #6b7280;
    --grey-light: #e5e5e5;
    --grey-bg:    #f5f5f5;
    --grey-footer:#ececec;
    --text-dark:  #1a1a1a;
    --border:     #d1d5db;
}

html, body {
    height: 100%;
    font-family: "DM Sans", sans-serif;
    background: #b2c9b5;
    color: var(--text-dark);
}

/* ── Navbar (matches .regis-header exactly) ── */
.login-navbar {
    background: #054d20;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    max-width: 120px;
    height: auto;
    filter: brightness(0) invert(1);
}

/* ── Page Layout ── */
.page-wrap {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── Main Content ── */
.main-content {
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 32px 24px;
}

/* ── Login Card ── */
.login-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.10);
    display: flex;
    width: 100%;
    max-width: 1100px;
    min-height: 500px;
    overflow: hidden;
}

/* ── Left Panel (Form) — narrower ── */
.panel-left {
    flex: 0 0 420px;
    padding: 56px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    border-right: 1px solid var(--grey-light);
}

.login-greeting {
    font-size: 42px;
    font-weight: 800;
    color: var(--green);
    font-style: italic;
    line-height: 1.1;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.login-sub {
    font-size: 14px;
    color: var(--grey-mid);
    margin-bottom: 36px;
    font-weight: 500;
}

/* ── Fields ── */
.field-group {
    margin-bottom: 20px;
}

.field-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 7px;
    letter-spacing: 0.2px;
}

.field-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    background: var(--white);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field-input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(8, 120, 50, 0.10);
    background: #fff;
}

.field-input::placeholder {
    color: #c0c0c0;
}

.field-input.input-bad {
    border-color: #dc3545;
}

/* ── Login Button ── */
.btn-login {
    width: 100%;
    padding: 13px;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 4px;
}

.btn-login:hover   { background: var(--green-dark); }
.btn-login:active  { transform: scale(0.99); }
.btn-login:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Divider ── */
.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 16px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--grey-light);
}

/* ── Footer Links ── */
.login-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: var(--grey-mid);
}

.login-footer a {
    color: var(--green);
    font-weight: 600;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
    color: var(--green-dark);
}

.forgot-row {
    display: flex;
    justify-content: flex-end;
}

.signup-row {
    display: flex;
    gap: 4px;
    align-items: center;
}

/* ── Right Panel — wider, image fills ── */
.panel-right {
    flex: 1;
    background: var(--grey-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    min-height: 400px;
}

.panel-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Site Footer ── */
.site-footer {
    background: var(--grey-footer);
    border-top: 1px solid var(--grey-light);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    max-width: 90px;
    height: auto;
    display: block;
    opacity: 0.75;
}

.footer-trustmark {
    font-size: 11px;
    color: var(--grey-mid);
    max-width: 280px;
    line-height: 1.5;
}

.footer-links {
    font-size: 12px;
    color: var(--grey-mid);
    text-align: right;
    line-height: 2.2;
}

.footer-links a {
    color: var(--grey-mid);
    text-decoration: none;
    transition: color 0.15s;
}

.footer-links a:hover { color: var(--green); }

.footer-links .sep {
    margin: 0 4px;
    opacity: 0.5;
}

/* ── Error & Validation States ── */
.login-error {
    background: #fff5f5;
    border-left: 4px solid #dc3545;
    color: #dc3545;
    border-radius: 6px;
    padding: 8px 14px;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 600;
}

.login-field-error {
    color: #dc3545;
    font-size: 11.5px;
    font-weight: 600;
    margin-top: 4px;
}

.login-cooldown {
    display: none;
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #7d5a00;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 500;
}
.login-cooldown.show { display: block; }

.login-attempt-warn {
    display: none;
    color: #dc3545;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}
.login-attempt-warn.show { display: block; }

/* ── Step transition animations ── */
.step-hidden { display: none !important; }

.step-exit {
    animation: stepOut 0.25s ease forwards;
}
.step-enter {
    animation: stepIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes stepOut {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(-20px); }
}
@keyframes stepIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── Login method buttons ── */
.btn-method {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    border-radius: 12px;
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--text-dark);
    margin-bottom: 12px;
    text-align: left;
}

.btn-method:hover {
    background: #f8f9fa;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.btn-method:active { transform: scale(0.99); }

.btn-microsoft { border-color: #d1d5db; }
.btn-stdnum   { border-color: var(--green); color: var(--green); }
.btn-stdnum:hover { background: #f0fdf4; }

/* ── Method divider ── */
.method-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0 4px;
    color: var(--grey-mid);
    font-size: 13px;
}
.method-divider::before,
.method-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--grey-light);
}

/* ── Back button ── */
.btn-back {
    background: none;
    border: none;
    color: var(--grey-mid);
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}
.btn-back:hover { color: var(--green); }