:root {
    /* Enhanced Gold Palette */
    --gold-primary: #D4AF37;
    --gold-secondary: #C5A028;
    --gold-light: #F8F0D5;
    --gold-soft: #E8D6A0;
    --gold-dark: #9E7B1F;
    --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #B8942B 100%);
    
    /* Black Palette */
    --black-rich: #0A0A0A;
    --black-primary: #1A1A1A;
    --black-soft: #2C2C2C;
    --black-light: #3A3A3A;
    
    /* White/Gray */
    --white-pure: #FFFFFF;
    --white-soft: #FAFAFA;
    --white-cream: #FCF9F2;
    --gray-light: #ECECEC;
    --gray-medium: #B0B0B0;
    --gray-dark: #6E6E6E;
    
    /* Glow & Shadows */
    --gold-glow: rgba(212, 175, 55, 0.15);
    --gold-glow-strong: rgba(212, 175, 55, 0.25);
    --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 25px 45px rgba(212, 175, 55, 0.2);
    --gold-shadow: 0 10px 25px rgba(212, 175, 55, 0.25);
    --gold-shadow-strong: 0 15px 35px rgba(212, 175, 55, 0.35);
    
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Dark Background Theme - Matching admin_login.php */
body {
    min-height: 100vh;
  background: url('bg.png') no-repeat center center fixed;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    padding: 1rem;
}

/* MAIN CONTAINER */
.login-container {
    width: 1100px;
    max-width: 95vw;
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    border-radius: 2.8rem;
    box-shadow: 0 30px 60px -20px rgba(212, 175, 55, 0.3), 0 20px 30px -15px rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.3);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* LEFT PANEL */
.showcase-panel {
    background: linear-gradient(165deg, var(--black-rich) 0%, var(--black-soft) 30%, var(--black-light) 80%, #2C2C2C 100%);
    padding: 2.5rem 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    isolation: isolate;
    box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.2);
}

.showcase-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.3) 0%, transparent 35%),
                radial-gradient(circle at 90% 70%, rgba(212, 175, 55, 0.45) 0%, transparent 50%),
                repeating-linear-gradient(45deg, rgba(212, 175, 55, 0.03) 0px, rgba(212, 175, 55, 0.03) 1px, transparent 1px, transparent 12px);
    pointer-events: none;
    z-index: 0;
}

.logo-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
    position: relative;
    width: 100%;
}

.logo-icon-circle {
    background: var(--gold-gradient);
    width: 120px;
    height: 120px;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--gold-shadow-strong), 0 0 0 4px rgba(212, 175, 55, 0.5) inset;
    transition: var(--transition);
    margin-bottom: 1.6rem;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.logo-icon-circle:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: var(--gold-shadow-strong), 0 0 0 6px rgba(212, 175, 55, 0.7) inset;
}

.logo-icon-circle:hover .logo-image {
    transform: scale(1.02);
}

.logo-center h1 {
    font-weight: 800;
    font-size: 2.3rem;
    letter-spacing: -0.02em;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    margin-bottom: 0.3rem;
}

.logo-tagline {
    font-size: 1rem;
    font-weight: 500;
    color: var(--white-cream);
    background: rgba(212, 175, 55, 0.15);
    padding: 0.4rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(6px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    border: 1px solid rgba(212, 175, 55, 0.3);
    display: inline-flex;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.logo-tagline i {
    color: var(--gold-primary);
    font-size: 0.9rem;
}

.legacy-badge {
    margin-top: 1.2rem;
    color: rgba(212, 175, 55, 0.8);
    font-size: 0.7rem;
    border-top: 1px dashed rgba(212, 175, 55, 0.3);
    padding-top: 0.8rem;
}

/* RIGHT PANEL - Dark Theme Override */
.login-panel {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-height: 85vh;
    overflow-y: auto;
    scrollbar-width: thin;
}

.login-panel::-webkit-scrollbar {
    width: 5px;
}

.login-panel::-webkit-scrollbar-track {
    background: var(--black-soft);
    border-radius: 10px;
}

.login-panel::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 10px;
}

.login-header h2 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(145deg, var(--gold-primary), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.1rem;
}

.greeting {
    font-size: 0.9rem;
    color: var(--gray-medium);
    font-weight: 500;
    display: flex;
    gap: 5px;
    align-items: center;
    margin-bottom: 0.8rem;
}

/* Message banners */
.error-message, .success-message {
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
    border-radius: 50px;
    padding: 0.7rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 600;
}

.error-message {
    background: rgba(185, 28, 28, 0.2);
    color: #ff6b6b;
    border-left: 4px solid #b91c1c;
}

.success-message {
    background: rgba(46, 125, 50, 0.2);
    color: #4caf50;
    border-left: 4px solid #2e7d32;
}

.approval-note {
    background: rgba(212, 175, 55, 0.12);
    border-radius: 40px;
    padding: 0.7rem 1rem;
    font-size: 0.8rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-soft);
    font-weight: 500;
    border: 1px solid var(--gold-dark);
}

/* FORM GRID */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.full-width {
    grid-column: span 2;
}

.input-group {
    margin-bottom: 0.2rem;
}

.input-group label {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--white-soft);
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.optional-text {
    font-weight: 400;
    color: var(--gray-medium);
    font-size: 0.7rem;
}

.input-field, select.input-field {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--gold-dark);
    border-radius: 40px;
    font-size: 0.9rem;
    background: var(--black-soft);
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    color: var(--white-pure);
    font-family: inherit;
}

select.input-field {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="%23D4AF37" stroke-width="2"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-color: var(--black-soft);
}

.input-field:focus, select.input-field:focus {
    border-color: var(--gold-primary);
    outline: none;
    box-shadow: 0 0 0 4px var(--gold-glow), 0 6px 14px rgba(0,0,0,0.3);
}

/* Gender radio group */
.gender-group {
    display: flex;
    gap: 1rem;
    margin-top: 0.2rem;
}

.gender-option {
    flex: 1;
    position: relative;
}

.gender-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.gender-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 0.3rem;
    border: 1.5px solid var(--gold-dark);
    border-radius: 40px;
    background: var(--black-soft);
    color: var(--gray-medium);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.gender-option input[type="radio"]:checked + label {
    border-color: var(--gold-primary);
    background: var(--gold-light);
    color: var(--gold-dark);
    box-shadow: 0 5px 12px rgba(212, 175, 55, 0.2);
}

/* File input */
.file-input-field {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1.5px solid var(--gold-dark);
    border-radius: 40px;
    background: var(--black-soft);
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--white-soft);
}

.file-input-field::-webkit-file-upload-button {
    background: var(--gold-gradient);
    border: none;
    padding: 6px 18px;
    border-radius: 40px;
    color: var(--black-rich);
    font-weight: 600;
    margin-right: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.file-note {
    font-size: 0.7rem;
    color: var(--gray-medium);
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Button */
.btn-primary {
    background: var(--gold-gradient);
    color: var(--black-rich);
    border: none;
    padding: 0.9rem;
    width: 100%;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: var(--gold-shadow);
    transition: var(--transition);
    margin: 1rem 0 0.8rem;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--gold-shadow-strong);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--gray-medium);
    font-size: 0.8rem;
    margin: 1rem 0;
}

.line {
    flex: 1;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--gold-primary) 50%, transparent);
}

/* Social buttons */
.social-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.social-btn {
    background: var(--black-soft);
    border: 1.5px solid var(--gold-dark);
    padding: 0.7rem 0.4rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--white-soft);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.social-btn i {
    color: var(--gold-primary);
    font-size: 1rem;
}

.social-btn:hover {
    background: var(--gold-light);
    border-color: var(--gold-primary);
    transform: scale(0.98);
    color: var(--black-rich);
}

/* Footer */
.login-footer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-medium);
    margin-top: 0.8rem;
}

.login-footer a {
    color: var(--gold-primary);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dotted var(--gold-soft);
}

.required-star {
    color: var(--gold-primary);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 900px) {
    .login-container {
        grid-template-columns: 1fr;
        width: 520px;
    }
    
    .showcase-panel {
        padding: 2rem 1rem;
    }
    
    .logo-icon-circle {
        width: 90px;
        height: 90px;
    }
    
    .logo-center h1 {
        font-size: 2rem;
    }
    
    .login-panel {
        max-height: 70vh;
    }
}

@media (max-width: 550px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .full-width {
        grid-column: span 1;
    }
    
    .login-panel {
        padding: 1.5rem;
    }
}