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

:root {
    --bg:          #121414;
    --surface:     #121414;
    --surface-low: #1a1c1c;
    --gold:        #ffd633;
    --gold-dark:   #eac31b;
    --on-primary:  #231b00;
    --text:        #e2e2e2;
    --text-muted:  #d0c6ac;
    --text-dim:    #6b6b6b;
    --error-red:   #ff4b4b;
    --outline:     #4d4633;
    --border-field:#2a2a2a;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

/* ─── Layout ─── */
main {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ─── Left: Image Panel ─── */
.panel-image {
    position: relative;
    width: 60%;
    overflow: hidden;
    background: #000;
    flex-shrink: 0;
}

.panel-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 115%;
    object-fit: cover;
    filter: brightness(0.7);
}

.panel-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(0,0,0,0.4) 0%, transparent 50%, var(--surface) 100%),
        linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    z-index: 1;
}

.panel-image .caption {
    position: absolute;
    bottom: 5rem;
    left: 5rem;
    z-index: 2;
    max-width: 28rem;
}

.caption .logo-wrap a, a:visited, a:link, a:active{
    text-decoration: none;
}

.caption .logo-wrap {
    margin-bottom: 1.25rem;
}

.caption .logo {
    font-family: 'Noto Serif', serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    display: block;
}

.caption .logo-line {
    width: 3rem;
    height: 1px;
    background: var(--gold);
    margin-top: 0.5rem;
}

.caption h2 {
    font-family: 'Noto Serif', serif;
    font-size: 2.75rem;
    font-weight: 400;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

.caption p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: rgba(198,198,198,0.8);
    line-height: 1.6;
}

/* ─── Right: Form Panel ─── */
.panel-form {
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 4rem;
    background: var(--surface);
    overflow-y: auto;
}

.form-inner {
    width: 100%;
    max-width: 26rem;
    display: flex;
    flex-direction: column;
}

/* ─── Form Header ─── */
.form-header {
    margin-bottom: 2rem;
}

.form-header h1 {
    font-family: 'Noto Serif', serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--text);
    letter-spacing: -0.01em;
    margin-bottom: 0.375rem;
}

.form-header h2 {
    font-family: 'Noto Serif', serif;
    font-size: 2.75rem;
    font-weight: 400;
    color: #fff;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}

.form-header p {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #c6c6c6;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* ─── Fields ─── */
.fields {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.field-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}


.forgot-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.625rem;
    font-weight: 600;
    color: #6b6b6b;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    transition: color 0.2s;
}
.forgot-link:hover { color: var(--gold); }


input[type="email"],
input[type="password"],
input[type="text"] {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--outline);
    /*padding: 1rem 0;*/
    padding: 0.875rem 1rem;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    outline: none;
    transition: border-color 0.3s;
    width: 100%;
}


input::placeholder { color: #3d3d3d; }
input:focus { border-bottom-color: var(--gold); }

/* ─── Error ─── */
.error-msg {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--error-red);
    font-family: 'Inter', sans-serif;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.error-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    fill: var(--error-red);
}

/* ─── CTA Button ─── */
.btn-cta {
    width: 100%;
    background: var(--gold);
    color: var(--on-primary);
    border: none;
    padding: 1.25rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 0.5rem;
}
.btn-cta:hover  { background: var(--gold-dark); }
.btn-cta:active { transform: scale(0.98); }

/* ─── Footer Link ─── */
.form-footer {
    padding-top: 1.75rem;
    text-align: center;
}

.form-footer p {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.form-footer a {
    color: var(--gold);
    font-weight: 600;
    text-decoration: none;
    margin-left: 0.25rem;
    transition: text-decoration 0.2s;
}
.form-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ─── Divider ─── */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 3.5rem;
    gap: 1rem;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--outline));
}
.divider-line.right {
    background: linear-gradient(to left, transparent, var(--outline));
}

.divider span {
    font-family: 'Inter', sans-serif;
    font-size: 0.5625rem;
    font-weight: 600;
    color: var(--outline);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    white-space: nowrap;
}

/* ─── Browser Autofill Stylings ─── */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: white;

    -webkit-box-shadow: 0 0 0px 1000px #0a0a0a inset;

    transition: background-color 5000s ease-in-out 0s;

    caret-color: white;

    border: 1px solid rgba(255,255,255,0.08);
}

/* ─── Responsive ─── */
@media (max-width: 960px) {
    main { flex-direction: column; }
    .panel-image { width: 100%; height: 260px; flex-shrink: unset; }
    .panel-image .caption { bottom: 1.5rem; left: 1.5rem; }
    .caption h2  { font-size: 1.75rem; }
    .caption p   { font-size: 0.875rem; }
    .panel-form  { width: 100%; padding: 2.5rem 1.5rem; }
}



