:root {
    --primary-color: #0061f2; /* Modern Blue */
    --secondary-color: #69707a;
    --bg-gradient: linear-gradient(135deg, #f2f5f9 0%, #e2e8f0 100%);
    --card-shadow: 0 0.5rem 2rem 0 rgba(0, 0, 0, 0.1);
}

body.login-page {
    background: var(--bg-gradient);
    font-family: 'Inter', sans-serif;
    color: #2d3748;
    min-height: 100vh;
}

.login-card {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 2rem;
}

/* Branding */
.cms-title {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
    margin-bottom: 0;
    color: #1a202c;
}

.cms-subtitle {
    font-size: 0.85rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Form Styling */
.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5568;
}

.input-group-text {
    background-color: #f8fafc;
    border-right: none;
    color: var(--secondary-color);
}

.form-control {
    border-left: none;
    padding: 0.6rem 0.75rem;
    border-color: #e2e8f0;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* Button */
.login-btn {
    background-color: var(--primary-color);
    border: none;
    padding: 0.8rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background-color: #004dc0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 97, 242, 0.3);
}

/* Footer */
.login-footer {
    position: fixed;
    bottom: 20px;
    width: 100%;
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    margin-left: 10px;
}

.login-logo {
    /* Adjust this value to get the exact "bigness" you want */
    max-height: 250px; 
    width: auto;
    
    /* Optional: Add a very slight drop shadow to the logo if it's a PNG */
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
    margin-right: 8px; /* Space between spinner and text */
}

/* Ensure the button looks disabled when loading */
.login-btn:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

/* Removes the default button borders to make it blend with the input */
.toggle-password {
    border-color: #e2e8f0;
    border-left: none;
    background-color: #fff;
    color: #69707a;
    transition: all 0.2s;
}

.toggle-password:hover {
    background-color: #f8fafc;
    color: var(--primary-color);
    border-color: #e2e8f0;
}

.toggle-password:focus {
    box-shadow: none;
}

/* Adjust the input field to remove the right-side border radius so it meets the button */
#password {
    border-right: none;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* On very small phones, we scale it down slightly so the form is still visible */
@media (max-width: 400px) {
    .login-logo {
        max-height: 150px;
    }
}