/* --- Custom Login Page & Lost Password Form CSS (Admission Mall Palette) --- */
/* For icons to work, please add this in your theme's header: <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css"> */

/* General Page Styles */
body.login {
    margin: 0 !important;
    padding: 0 !important;
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='199' viewBox='0 0 100 199'%3E%3Cg fill='%239ca3af' fill-opacity='0.1'%3E%3Cpath d='M0 199V0h1v1.99L100 199h-1.12L1 4.22V199H0zM100 2h-.12l-1-2H100v2z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E") !important;
    display: flex !important;
    align-items: center !important; /* Vertically center the container */
    justify-content: center !important;
    min-height: 100vh !important; /* Ensure it takes full height */
    overflow: hidden !important;
}

/* The main login form container */
#login {
    width: 100% !important;
    max-width: 400px !important;
    padding: 40px !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid #e5e7eb !important; /* Added a subtle border */
}

/* Custom Font Awesome Icon Logo */
#login::before {
    content: '\f023' !important; /* fa-lock */
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 900 !important;
    display: block !important;
    width: 60px !important;
    height: 60px !important;
    line-height: 60px !important; /* Vertically center icon */
    margin: 0 auto 25px !important;
    background-color: #004274 !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(0, 66, 116, 0.3) !important;
    color: #ffffff !important;
    font-size: 28px !important;
    text-align: center !important;
}

/* Hide the original WordPress Logo Header */
#login h1 {
    display: none !important;
}

/* The main form container */
#login #lostpasswordform {
    margin-top: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Label for the input field */
#login #lostpasswordform label {
    color: #555 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    margin-bottom: 8px !important;
    display: inline-flex !important; /* Use flex to align icon and text */
    align-items: center !important;
}

/* Add icon before the label text for better compatibility */
#login #lostpasswordform label[for="user_login"]::before {
    content: '\f007' !important; /* fa-user */
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 900 !important;
    color: #004274 !important;
    font-size: 14px !important;
    margin-right: 8px !important;
}

/* "Username or Email Address" input field */
#login #lostpasswordform #user_login.input {
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    width: 100% !important;
    padding: 12px 5px !important; /* Adjusted padding for underline style */
    margin: 0 !important;
    border: none !important; /* Removed all borders */
    border-radius: 0 !important; /* No rounded corners */
    background: transparent !important;
    color: #333 !important;
    box-shadow: none !important;
    border-bottom: 2px solid #ddd !important; /* Underline style */
    transition: border-color 0.3s ease !important;
}

#login #lostpasswordform #user_login.input:focus {
    border-color: #004274 !important; /* Highlight color on focus */
    box-shadow: none !important;
    outline: none !important;
    background: transparent !important;
}


/* The paragraph wrapping the submit button */
#login #lostpasswordform p.submit {
    margin-top: 20px !important; /* Add space above button */
    padding: 0 !important;
    border: 0 !important;
}

/* "Get New Password" submit button */
#login #lostpasswordform #wp-submit {
    background: #004274 !important;
    background-image: linear-gradient(45deg, #005a87, #004274) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 66, 116, 0.25) !important;
    text-shadow: none !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    width: 100% !important;
    height: auto !important;
    padding: 14px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

#login #lostpasswordform #wp-submit:hover,
#login #lostpasswordform #wp-submit:focus {
    transform: translateY(-2px) !important;
    box-shadow: 0 7px 20px rgba(0, 66, 116, 0.3) !important;
}

/* The navigation paragraph below the form */
#nav {
    padding: 0 !important;
    margin: 25px 0 0 !important;
    text-align: center !important;
}

/* "Log in" and "Register" links */
#nav a {
    color: #004274 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: color 0.2s ease !important;
}

#nav a:hover {
    color: #00335c !important;
    text-decoration: underline !important;
}
