@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --gold: #d4af37;
    --gold-dim: rgba(212,175,55,0.12);
    --dark: #0a0a0a;
    --dark-2: #111;
    --dark-card: #141414;
    --text: #f0ede8;
    --muted: #777;
    --border: rgba(212,175,55,0.2);
    --tr: 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark);
    color: var(--text);
    min-height: 100vh;
    display: flex;
}


.admin-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}


.admin-brand {
    width: 380px;
    flex-shrink: 0;
    background: linear-gradient(160deg, #0f0d08 0%, #1a1408 60%, #0a0a0a 100%);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.admin-brand::before {
    content: '';
    position: absolute;
    top: -100px; left: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(212,175,55,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.brand-top { display: flex; align-items: center; justify-content: space-between; }

.admin-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 3px;
}
.admin-logo span { color: var(--gold); }

.admin-badge {
    background: var(--gold-dim);
    border: 1px solid var(--border);
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 50px;
    font-weight: 500;
}

.brand-center {
    text-align: center;
}

.shield-icon {
    width: 90px; height: 90px;
    background: var(--gold-dim);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    margin: 0 auto 24px;
}

.brand-center h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.brand-center p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.8;
    font-weight: 300;
    max-width: 240px;
    margin: 0 auto;
}

.brand-bottom {}

.guest-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    padding: 10px 18px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    transition: var(--tr);
    width: 100%;
    justify-content: center;
}
.guest-link:hover { color: var(--gold); border-color: var(--border); background: var(--gold-dim); }


.admin-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    background: rgba(255,255,255,0.01);
}

.admin-form-box {
    width: 100%;
    max-width: 400px;
}

.admin-form-header { margin-bottom: 36px; }

.admin-tag {
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.7;
    margin-bottom: 10px;
}

.admin-form-header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 38px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.admin-form-header p {
    font-size: 13px;
    color: var(--muted);
    font-weight: 300;
}


.alert-error {
    background: rgba(220,60,60,0.1);
    border: 1px solid rgba(220,60,60,0.3);
    color: #ff8080;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    margin-bottom: 24px;
}


.input-group { margin-bottom: 22px; }

.input-group label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #555;
    margin-bottom: 10px;
    font-weight: 500;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.inp-icon {
    position: absolute;
    left: 16px;
    color: #444;
    pointer-events: none;
    transition: var(--tr);
}

.input-wrap:focus-within .inp-icon { color: var(--gold); }

.input-wrap input {
    width: 100%;
    padding: 14px 16px 14px 46px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 300;
    outline: none;
    transition: var(--tr);
}

.input-wrap input::placeholder { color: #444; }

.input-wrap input:focus {
    border-color: var(--gold);
    background: rgba(212,175,55,0.05);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.08);
}

.toggle-pw {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: var(--tr);
}
.toggle-pw:hover { color: var(--gold); }


.admin-submit {
    width: 100%;
    padding: 15px 24px;
    background: linear-gradient(135deg, #c8a820, #a88a15);
    color: #000;
    border: none;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--tr);
    box-shadow: 0 4px 20px rgba(212,175,55,0.2);
    margin-bottom: 24px;
}
.admin-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212,175,55,0.35);
}


.security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 11px;
    color: #444;
    text-align: center;
}


@media (max-width: 700px) {
    .admin-brand { display: none; }
    .admin-form-side { padding: 60px 24px; }
}

/* ── LIGHT MODE GLOBALS ── */
body.light-mode {
    --dark: #fcfbf9;
    --dark-2: #f2efe9;
    --dark-card: #ffffff;
    --text: #1a1a1a;
    --muted: #555555;
    --border: rgba(212, 175, 55, 0.4);
    --gold-dim: rgba(212, 175, 55, 0.15);
}
body { transition: background-color 0.4s ease, color 0.4s ease; }
body.light-mode .admin-form-side { background: #fcfbf9; }
body.light-mode .input-wrap input { background: #fff; border-color: rgba(0,0,0,0.1); color: #000; }
body.light-mode .admin-brand {
    background: linear-gradient(160deg, #f2efe9 0%, #e8e4db 100%);
    border-right-color: rgba(0,0,0,0.05);
}
body.light-mode .shield-icon { background: #fff; }
body.light-mode .admin-form-header h1 { color: #111; }
body.light-mode .global-theme-toggle { background: var(--dark-2) !important; color: var(--text) !important; border-color: var(--border) !important; }
body.light-mode .guest-link { color: #555; border-color: rgba(0,0,0,0.1); }
body.light-mode .guest-link:hover { background: #fff; border-color: var(--gold); }
