
.login-header {
    text-align: center;
    margin-bottom: 25px;
}

.login-header h2 {
    color: var(--navy);
    margin: 0;
}

.login-header p {
    color: #777;
    font-size: 0.9rem;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--navy);
    margin-bottom: 8px;
    display: block;
}

.form-group label i {
    margin-left: 5px;
    color: var(--green);
}

#message {
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
    min-height: 24px;
}

/* Make inputs look consistent with the theme */
input, select {
    border: 1px solid #e0e0e0 !important;
    transition: border-color 0.3s;
}

input:focus {
    border-color: var(--green) !important;
}

#loginBtn {
    background-color: var(--navy);
    transition: background-color 0.3s;
}

#loginBtn:hover {
    background-color: var(--green);
}


/* Container for the whole page area */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 160px); /* Subtracts approx header/footer height */
    padding: 20px;
}

.login-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(44, 77, 98, 0.1); /* Soft Navy shadow */
    width: 100%;
    max-width: 400px;
    border-top: 6px solid var(--green);
}

/* Modern Input Styling */
.form-group input, 
.form-group select {
    width: 100%;
    padding: 14px 15px;
    margin-top: 8px;
    border: 2px solid #eef0f2;
    border-radius: 12px;
    font-size: 16px;
    color: var(--navy);
    background-color: #fcfdfe;
    box-sizing: border-box;
    display: block;
    appearance: none; /* Removes default safari/chrome arrow on select */
    transition: all 0.3s ease;
}

/* Focus State */
.form-group input:focus, 
.form-group select:focus {
    border-color: var(--green);
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(140, 198, 63, 0.1);
}

/* Button Refinement */
#loginBtn {
    width: 100%;
    padding: 15px;
    background-color: var(--navy);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
}

#loginBtn:hover {
    background-color: var(--green);
}

button:disabled {
    background-color: #a5c7fe; /* Lighter blue */
    cursor: not-allowed;
}

/* Optional: A simple CSS spinning animation */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px; /* Space for Arabic RTL */
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.login-logo-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

.animated-logo {
    width: 180px; /* Starting size */
    height: auto;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Bouncy effect */
    cursor: pointer;
}

/* The "Shrink" class triggered by JS */
.animated-logo.shrunk {
    width: 100px;
}

/* Grow back on hover */
.animated-logo:hover {
    width: 180px !important;
    transform: rotate(5deg); /* Slight tilt for fun */
}