:root {
    --bg-dark:#121825; /* Primary dark background */
    --bg-card: #1A212E; /* Slightly lighter, metallic dark blue/gray for the card */
    --accent-orange: #FF6600; /* Rushride accent color */
    --text-light: #F0F0F0;
    --text-secondary: #AAAAAA;
    --border-color: #333C4F;
    --input-bg: #2b384a;
}

/* Base Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.6;
}

/* --- Login Container --- */
.admin-login-container {
    padding: 20px;
    width: 100%;
    max-width: 450px;
}

.login-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
}

/* --- Header and Logo --- */
.logo-header {
    text-align: center;
    margin-bottom: 25px;
}
.logo-img {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
}
.logo-header h1 {
    font-size: 2rem;
    color: var(--accent-orange);
    margin: 0;
    font-weight: 700;
}
.subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* --- Form Elements --- */
.input-group {
    margin-bottom: 20px;
}
.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-light);
}
.input-group i {
    color: var(--accent-orange);
    margin-right: 8px;
}

/* 🔑 Password Toggle Styles */
.password-container {
    /* KEY: This allows the eye icon to be positioned ABSOLUTELY within this element */
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 12px;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box; 
}
.input-group input:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.3);
    outline: none;
}

/* Specific styling for the password input to make space for the toggle icon */
#password {
    padding-right: 40px; 
}

.toggle-password {
    /* KEY: Positions the icon over the input field */
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-secondary); 
    transition: color 0.2s;
    font-size: 1.1rem;
    z-index: 10;
}

.toggle-password:hover {
    color: var(--accent-orange);
}


/* --- Button --- */
.btn-login {
    width: 100%;
    padding: 15px;
    background-color: var(--accent-orange);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s, transform 0.1s;
}
.btn-login:hover {
    background-color: #e65c00;
}
.btn-login:active {
    transform: translateY(1px);
}

/* --- Footer Links --- */
.footer-links {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: var(--accent-orange);
}

/* --- Responsiveness --- */
@media (max-width: 500px) {
    .login-card {
        padding: 30px 20px;
    }
    .logo-header h1 {
        font-size: 1.7rem;
    }
    .footer-links {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}