/* ============================================================
   index-style.css  –  Mirrors the login.php two-panel design.
   Targets only the classes that exist in index.php (added or
   original). Uses !important where inline styles must be
   overridden (the existing inputs have style="background-color:white;").
   ============================================================ */

:root {
    --gold:       #D4A017;
    --gold-light: #F5C842;
    --navy:       #1A2744;
    --navy-mid:   #243256;
    --cream:      #FDF8EE;
    --text-muted: #8892A4;
    --border:     rgba(212,160,23,0.3);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── BODY: two-column flex layout ── */
body {
    min-height: 100vh;
    font-family: 'DM Sans', sans-serif;
    background: var(--navy);
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

/* ── HEADING: zero footprint (empty after comments) ── */
.heading {
    display: none;
}

/* ── WELCOME: hidden – the heading lives inside .box now ── */
.welcome {
    display: none;
}

/* ═══════════════════════════════════════
   LEFT PANEL
═══════════════════════════════════════ */
.left-panel {
    flex: 0 0 60%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* full-bleed photo */
.photo-area {
    position: absolute;
    inset: 0;
    background: #0d1b35;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* gradient overlay */
.left-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right,  rgba(10,16,35,0) 50%, var(--navy) 100%),
        linear-gradient(to top,    rgba(10,16,35,0.7) 0%, transparent 40%);
    pointer-events: none;
}

/* caption block */
.left-caption {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 2;
    max-width: 340px;
}

.left-caption .tag {
    display: inline-block;
    background: var(--gold);
    color: var(--navy);
    font-size: .65rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 14px;
}

.left-caption h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 10px;
}

.left-caption p {
    font-size: .82rem;
    color: rgba(255,255,255,.55);
    line-height: 1.6;
}

/* ═══════════════════════════════════════
   RIGHT PANEL  (.box)
═══════════════════════════════════════ */
.box {
    width: 40%;
    min-width: 40%;
    background: var(--navy);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 52px 48px;
    position: relative;
    z-index: 1;
    /* reset any old box styles */
    border-radius: 0;
    box-shadow: none;
}

/* ── Brand row (NEW element added to .box) ── */
.brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 44px;
}

.brand-icon {
    width: 38px; height: 38px;
    background: var(--gold);
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
}

.brand-text { line-height: 1.2; }
.brand-text strong {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.brand-text span {
    font-size: .65rem;
    color: var(--text-muted);
    letter-spacing: .04em;
}

/* ── Login heading (NEW element) ── */
.login-heading { margin-bottom: 8px; }
.login-heading small {
    font-size: .7rem;
    color: var(--gold);
    letter-spacing: .14em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}
.login-heading h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #fff;
    line-height: 1.1;
}
.login-heading h1 em {
    font-style: italic;
    color: var(--gold-light);
}

/* ── Divider (NEW element) ── */
.divider-line {
    width: 48px; height: 2px;
    background: var(--gold);
    margin: 18px 0 28px;
    border-radius: 2px;
}

/* ── Hide old avatar + old header text ── */
.avt          { display: none; }
.top-header   { display: none; }

/* ── Container: transparent pass-through ── */
.container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* ── Form input fields ── */
.input-field {
    margin-bottom: 18px;
}

/* Override inline style="background-color:white;" on both inputs */
.input-field input.input,
.input-field input[name="id"],
.input-field input[name="password"] {
    width: 100% !important;
    background: rgba(255,255,255,0.06) !important;
    background-color: rgba(255,255,255,0.06) !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    padding: 13px 18px !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: .9rem !important;
    color: #fff !important;
    outline: none !important;
    transition: border-color .2s, background .2s !important;
}

.input-field input.input::placeholder {
    color: rgba(255,255,255,.2) !important;
}

.input-field input.input:focus {
    border-color: var(--gold) !important;
    background: rgba(212,160,23,.05) !important;
    background-color: rgba(212,160,23,.05) !important;
}

/* ── Submit button ── */
.input-field input#submit,
.input-field input.submit {
    width: 100% !important;
    padding: 15px !important;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%) !important;
    background-color: transparent !important; /* let gradient win */
    color: var(--navy) !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: .9rem !important;
    font-weight: 600 !important;
    letter-spacing: .06em !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: transform .15s, box-shadow .2s !important;
    box-shadow: 0 8px 30px rgba(212,160,23,.3) !important;
    margin-top: 6px;
}

.input-field input#submit:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 36px rgba(212,160,23,.45) !important;
}
.input-field input#submit:active {
    transform: translateY(0) !important;
}

/* ── Bottom row: "Register here" + "Forgot password?" ── */
.bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    font-size: .8rem;
    color: var(--text-muted);
}

.bottom .left label,
.bottom .right label { color: var(--text-muted); }

.bottom .left a,
.bottom .right a {
    color: var(--gold-light) !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: color .2s;
}
.bottom .left a:hover,
.bottom .right a:hover { color: var(--gold) !important; }

/* ── Badges row (NEW element) ── */
.badges-row {
    display: flex;
    gap: 10px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.07);
    flex-wrap: wrap;
}

.badge {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: .6rem;
    color: var(--text-muted);
    letter-spacing: .06em;
    text-align: center;
    line-height: 1.5;
}
.badge strong {
    color: var(--gold);
    display: block;
    font-size: .68rem;
}

/* ═══════════════════════════════════════
   SPARKLES  (NEW element inside .box)
═══════════════════════════════════════ */
.sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.sparkle {
    position: absolute;
    width: 3px; height: 3px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%,100% { opacity: 0; transform: scale(0); }
    50%      { opacity: .7; transform: scale(1); }
}

/* ═══════════════════════════════════════
   ENTRANCE ANIMATIONS (right-panel items)
═══════════════════════════════════════ */
.box > *:not(.sparkles) {
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(18px);
    animation: fadeUp .5s ease forwards;
}

.input-label {
    display: block;
    font-size: .72rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
/* .forgot-link {
    display: block;
    text-align: right;
    font-size: .74rem;
    color: var(--gold);
    text-decoration: none;
    margin-top: -8px;
    margin-bottom: 28px;
    opacity: .8;
    transition: opacity .2s;
}

.forgot-link:hover { opacity: 1; } */

.box > *:nth-child(2)  { animation-delay: .10s; }
.box > *:nth-child(3)  { animation-delay: .18s; }
.box > *:nth-child(4)  { animation-delay: .24s; }
.box > *:nth-child(5)  { animation-delay: .30s; }
.box > *:nth-child(6)  { animation-delay: .36s; }
.box > *:nth-child(7)  { animation-delay: .42s; }
.box > *:nth-child(8)  { animation-delay: .48s; }

@keyframes fadeUp {
    to { opacity: 1; transform: none; }
}