:root {
    --navy-dark: #000c1d;
    --navy-medium: #001a3d;
    --accent-gold: #d4af37;
    --border-gold: rgba(212, 175, 55, 0.4);
    --content-gradient: linear-gradient(135deg, #000c1d 0%, #001a3d 40%, #8a6d3b 85%, #d4af37 100%);
}

body, html { height: 100%; margin: 0; font-family: 'Segoe UI', sans-serif; background: var(--navy-dark); }

.login-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--content-gradient);
    background-attachment: fixed;
    padding: 20px;
}

.login-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
    max-width: 900px;
    animation: fadeIn 0.8s ease-out;
}

/* Login Card */
.login-card {
    background: rgba(0, 12, 29, 0.85);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-gold);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    flex: 1;
}

/* Announcement Panel */
.login-announcement-panel {
    background: rgba(0, 12, 29, 0.6);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid var(--border-gold);
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    max-height: 500px;
}

.panel-header {
    color: var(--accent-gold);
    font-weight: bold;
    letter-spacing: 2px;
    border-bottom: 1px solid var(--border-gold);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.announcement-scroll-area {
    overflow-y: auto;
    padding-right: 10px;
}

/* Custom Scrollbar */
.announcement-scroll-area::-webkit-scrollbar { width: 5px; }
.announcement-scroll-area::-webkit-scrollbar-thumb { background: var(--accent-gold); border-radius: 10px; }

.announcement-item {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    padding-bottom: 10px;
}

.announcement-item p {
    color: #fff;
    font-size: 0.9rem;
    margin-top: 8px;
    line-height: 1.4;
}

.badge-gold {
    background: var(--accent-gold);
    color: #000;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
}

/* Shared Elements */
.login-logo { width: 200px; }
.login-title { color: var(--accent-gold); font-weight: bold; letter-spacing: 4px; }
.login-subtitle { color: #fff; font-size: 0.7rem; letter-spacing: 2px; opacity: 0.7; }
.input-group-text { background: transparent; border: 1px solid var(--border-gold); color: var(--accent-gold); border-right: none; }
/* 1. Updated Input Styling */
.form-control { 
    background: rgba(255, 255, 255, 0.05) !important; /* Force the transparency */
    border: 1px solid var(--border-gold); 
    color: white !important; 
    border-radius: 8px;
    padding: 12px;
}

/* 2. Fix the "White Box" on Focus */
.form-control:focus {
    background: #000c1d !important; /* Matches your --navy-dark */
    color: white !important;
    border-color: var(--accent-gold) !important;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
    outline: none;
}

/* 3. The "Stupid" Browser Autofill Fix */
/* This stops Chrome/Edge from turning the box white when it remembers your password */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0px 1000px #000c1d inset !important; /* Inset shadow to "paint" the background dark */
    transition: background-color 5000s ease-in-out 0s;
}
.btn-gold { background: var(--accent-gold); color: #000; font-weight: bold; border: none; padding: 12px; transition: 0.3s; }
.btn-gold:hover { background: #b8962d; transform: translateY(-2px); }
.gold-link { color: var(--accent-gold); text-decoration: none; font-size: 0.85rem; }
.gold-hr { border-top: 1px solid var(--border-gold); opacity: 0.3; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Responsive */
@media (max-width: 850px) {
    .login-container { flex-direction: column; align-items: center; }
    .login-card, .login-announcement-panel { width: 100%; max-width: 450px; }
}