:root {
    /* Color Palette */
    --bg-dark: #121418;       /* Very dark greyish, almost black */
    --bg-darker: #0d0f12;     /* Darker shade for accents */
    --accent-blue: #0b3d91;   /* CBP Blue */
    --accent-gold: #c3922e;   /* CBP Gold/Yellow */
    --accent-red: #b31942;    /* CBP Red */
    --text-main: #f0f4f8;
    --text-muted: #a0aec0;
    
    /* Glassmorphism settings */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-dark);
    /* Subtle radial gradient to make it not completely flat */
    background-image: radial-gradient(circle at center, var(--bg-dark) 0%, var(--bg-darker) 100%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Background ambient light effects (optional) */
body::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(11, 61, 145, 0.15) 0%, rgba(18, 20, 24, 0) 70%);
    z-index: 0;
}

body::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(195, 146, 46, 0.1) 0%, rgba(18, 20, 24, 0) 70%);
    z-index: 0;
}

/* Login Container Layout */
.login-container {
    position: relative;
    z-index: 1; /* Keep above ambient lights */
    width: 100%;
    max-width: 420px;
    padding: 2rem;
}

/* Glassmorphism Box */
.login-box {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: var(--glass-shadow);
    text-align: center;
    
    /* Animation */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUpIn 0.8s ease forwards;
}

/* Logo styling */
.logo-container {
    margin-bottom: 1.5rem;
}

.cbp-logo {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
    transition: transform 0.3s ease;
}

.cbp-logo:hover {
    transform: scale(1.05);
}

/* Typography */
.login-box h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* Form Elements */
.input-group {
    text-align: left;
    margin-bottom: 1.2rem;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.input-group input {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: var(--accent-blue);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.3);
}

.input-group input::placeholder {
    color: rgba(160, 174, 192, 0.4);
}

/* Options */
.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.85rem;
}

.remember {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    cursor: pointer;
}

.remember input {
    margin-right: 0.5rem;
    accent-color: var(--accent-blue);
}

.forgot-password {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #fff;
    text-decoration: underline;
}

/* Submit Button */
.btn-login {
    width: 100%;
    padding: 0.85rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, #1a56b8 100%);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(11, 61, 145, 0.4);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 61, 145, 0.6);
}

.btn-login:active {
    transform: translateY(0);
}

/* Utility / Messages */
.message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
}

.message.hidden {
    display: none;
}

.message.error {
    background: rgba(179, 25, 66, 0.2);
    border: 1px solid var(--accent-red);
    color: #ff8a8a;
}

/* Animations */
@keyframes fadeUpIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
