/* Main styling for the admin login page based on the MyCoursify logo */
:root {
    --primary-color: #008080; /* Teal color */
    --secondary-color: #48D1CC; /* Lighter turquoise */
    --background-color: #f0f8ff; /* A very light blue, like the logo's glow */
    --text-color: #333;
    --white-color: #ffffff;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--background-color);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.logo {
    max-width: 150px;
    margin-bottom: 20px;
}

h2 {
    color: var(--text-color);
    margin-bottom: 5px;
}

p {
    color: #777;
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.btn-login {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    background-color: var(--primary-color);
    color: var(--white-color);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-login:hover {
    background-color: var(--secondary-color);
}

/* --- CORRECTED STYLES FOR PASSWORD TOGGLE --- */

/* This wrapper MUST have position:relative for the icon to be placed inside it. */
.password-wrapper {
    position: relative;
    width: 100%;
}

/* We make the input inside the wrapper have slightly less padding on the right to make space for the icon */
.password-wrapper input {
    padding-right: 40px; 
}

/* This positions the icon absolutely within the relative wrapper. */
.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
    font-style: normal;
}

/* --- NEW STYLES FOR FORGOT PASSWORD LINK --- */

/* This wrapper uses flexbox to align "Password" and "Forgot Password?" on the same line */
.label-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 5px;
}

.forgot-password-link {
    font-size: 0.8em;
    color: var(--primary-color);
    text-decoration: none;
}

.forgot-password-link:hover {
    text-decoration: underline;
}