*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green-deep: #0f2a1f;
    --green-forest: #1a3d2c;
    --green-mid: #2a5c41;
    --gold-soft: #d4a055;
    --gold-bright: #e3b15a;
    --paper-cream: #fcfaf5;
    --ink: #1e1e1e;
    --ink-soft: #4a4a4a;
    --line-soft: #e5e0d5;
    --danger: #9b2c2c;
    --success: #17653d;
    --radius-sm: 4px;
    --radius-md: 8px;
}

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

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    background: var(--green-deep);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.wrap {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 0 28px;
}

.topstrip {
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.65);
    background: var(--green-deep);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
}

.contacts,
.footer-row,
.footer-links {
    display: flex;
    align-items: center;
}

.contacts {
    flex-wrap: wrap;
    gap: 8px 18px;
}

.topstrip a,
footer a {
    transition: color 0.2s;
}

.topstrip a:hover,
footer a:hover {
    color: var(--gold-bright);
}

main {
    min-height: 650px;
    position: relative;
    flex: 1;
    isolation: isolate;
    overflow: hidden;
    background: url('https://dmarketforces.com/wp-content/uploads/2022/01/Nigeria-Customs-Generates-N188.6-bln-at-Onne-Port.jpg') center 36% / cover no-repeat;
}

main::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(105deg, rgba(15, 42, 31, 0.98) 0%, rgba(15, 42, 31, 0.82) 49%, rgba(15, 42, 31, 0.47) 100%);
}

main::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, transparent 65%, rgba(15, 42, 31, 0.72));
}

.auth-layout {
    min-height: 650px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.72fr);
    gap: 80px;
    align-items: center;
    padding-top: 70px;
    padding-bottom: 70px;
}

.auth-intro {
    max-width: 570px;
    color: #fff;
}

.page-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--gold-soft);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.page-tag::before {
    content: '';
    width: 30px;
    height: 1px;
    background: currentColor;
}

.auth-intro h1 {
    max-width: 12ch;
    color: #fff;
    font-family: 'Fraunces', serif;
    font-size: clamp(42px, 5vw, 62px);
    font-weight: 640;
    line-height: 1.04;
    letter-spacing: -0.02em;
}

.auth-intro h1 em {
    color: var(--gold-bright);
    font-weight: 460;
}

.auth-intro > p {
    max-width: 48ch;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 17px;
    line-height: 1.75;
}

.security-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 500px;
    margin-top: 34px;
    padding-top: 24px;
    color: rgba(255, 255, 255, 0.65);
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    font-size: 13px;
}

.security-note svg {
    width: 22px;
    height: 22px;
    color: var(--gold-soft);
    flex: none;
}

.auth-panel {
    padding: 40px;
    background: var(--paper-cream);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-md);
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.68);
}

.panel-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line-soft);
}

.panel-brand img {
    width: 42px;
    height: 63px;
    object-fit: contain;
    flex: none;
}

.panel-brand-text span {
    display: block;
}

.panel-brand-eyebrow {
    color: var(--gold-soft);
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.panel-brand-name {
    margin-top: 2px;
    color: var(--green-deep);
    font-family: 'Fraunces', serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.25;
}

.form-kicker {
    color: var(--gold-soft);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-panel h2 {
    margin-top: 5px;
    color: var(--green-deep);
    font-family: 'Fraunces', serif;
    font-size: 31px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.form-intro {
    margin-top: 8px;
    color: var(--ink-soft);
    font-size: 13.5px;
}

.auth-form {
    margin-top: 28px;
}

.form-group + .form-group {
    margin-top: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--green-deep);
    font-size: 13px;
    font-weight: 600;
}

.input-wrap {
    position: relative;
}

.input-icon {
    width: 19px;
    height: 19px;
    position: absolute;
    top: 50%;
    left: 15px;
    color: #77746c;
    transform: translateY(-50%);
    pointer-events: none;
}

input {
    width: 100%;
    min-height: 52px;
    padding: 0 48px 0 46px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #d9d3c6;
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input::placeholder {
    color: #8b887f;
}

input:focus {
    border-color: var(--gold-soft);
    box-shadow: 0 0 0 3px rgba(212, 160, 85, 0.14);
}

.password-toggle {
    width: 42px;
    height: 42px;
    position: absolute;
    top: 5px;
    right: 5px;
    display: grid;
    place-items: center;
    color: #6f6c64;
    background: transparent;
    border: 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.password-toggle:hover {
    color: var(--green-mid);
    background: rgba(42, 92, 65, 0.06);
}

.password-toggle:focus-visible {
    outline: 2px solid var(--gold-soft);
    outline-offset: -2px;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

.field-help {
    display: block;
    margin-top: 6px;
    color: #716d64;
    font-size: 11.5px;
}

.status-message {
    margin-top: 20px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.status-message.error {
    color: var(--danger);
    background: rgba(155, 44, 44, 0.06);
    border-color: rgba(155, 44, 44, 0.2);
}

.status-message.success {
    color: var(--success);
    background: rgba(23, 101, 61, 0.07);
    border-color: rgba(23, 101, 61, 0.2);
}

.submit-button,
.secondary-button {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.submit-button {
    margin-top: 26px;
    color: var(--green-deep);
    background: var(--gold-soft);
    border: 1px solid var(--gold-soft);
}

.submit-button:hover {
    background: var(--gold-bright);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -12px rgba(212, 160, 85, 0.55);
}

.secondary-button {
    margin-top: 18px;
    color: var(--green-deep);
    background: transparent;
    border: 1px solid #cec7b9;
}

.secondary-button:hover {
    color: var(--green-mid);
    border-color: var(--green-mid);
}

.submit-button:focus-visible,
.secondary-button:focus-visible {
    outline: 3px solid rgba(212, 160, 85, 0.35);
    outline-offset: 3px;
}

.submit-button svg,
.secondary-button svg {
    width: 17px;
    height: 17px;
}

.panel-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line-soft);
    color: var(--green-mid);
    font-size: 12.5px;
    font-weight: 600;
}

.panel-links a:hover {
    color: var(--gold-soft);
}

footer {
    padding: 24px 0;
    color: rgba(255, 255, 255, 0.48);
    background: var(--green-deep);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
}

.footer-row {
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links {
    gap: 22px;
    flex-wrap: wrap;
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
}

@media (max-width: 900px) {
    .auth-layout {
        grid-template-columns: 1fr minmax(390px, 0.85fr);
        gap: 48px;
    }
}

@media (max-width: 760px) {
    main {
        min-height: auto;
        background-position: 62% center;
    }

    main::before {
        background: rgba(15, 42, 31, 0.9);
    }

    .auth-layout {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 38px;
        padding-top: 52px;
        padding-bottom: 60px;
    }

    .auth-intro > p {
        font-size: 15.5px;
    }

    .security-note {
        display: none;
    }
}

@media (max-width: 480px) {
    .auth-panel {
        padding: 28px 20px;
    }

    .auth-panel h2 {
        font-size: 28px;
    }

    .footer-row {
        align-items: flex-start;
        flex-direction: column;
    }
}