/* --- Custom CSS for "Login" Page --- */
/* 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 */
}

/* The main login form container */
#login {
    width: 100% !important;
    max-width: 420px !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;
}

/* Custom SVG Icon Logo (Replaced Font Awesome character for reliability) */
#login::before {
    content: '' !important; /* Content must be empty for background to show */
    display: block !important;
    width: 60px !important;
    height: 60px !important;
    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;
    /* Embedded and URL-encoded SVG for sign-in icon */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23ffffff' d='M377.9 105.9L500.7 228.7c7.2 7.2 11.3 17.1 11.3 27.3s-4.1 20.1-11.3 27.3L377.9 406.1c-6.4 6.4-15 9.9-24 9.9c-18.7 0-33.9-15.2-33.9-33.9l0-62.1-128 0c-17.7 0-32-14.3-32-32l0-64c0-17.7 14.3-32 32-32l128 0 0-62.1c0-18.7 15.2-33.9 33.9-33.9c9 0 17.6 3.6 24 9.9zM160 96L160 96c0-17.7-14.3-32-32-32l-32 0c-17.7 0-32 14.3-32 32l0 320c0 17.7 14.3 32 32 32l32 0c17.7 0 32-14.3 32-32l0 0z'/%3E%3C/svg%3E") !important;
    background-size: 28px 28px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Hide the default h1 logo */
#login h1 {
    display: none !important;
}

/* The main form container */
#login #loginform {
    margin-top: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Wrappers for input fields */
#login #loginform p, #login #loginform .user-pass-wrap {
    margin-bottom: 20px !important;
}

/* Labels for the input fields */
#login #loginform label {
    color: #555 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    margin-bottom: 8px !important;
    display: block !important;
}

/* Input fields */
#login #loginform #user_login,
#login #loginform #user_pass {
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    width: 100% !important;
    padding: 12px 15px !important;
    margin: 0 !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    background: #f9f9f9 !important;
    color: #333 !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

/* Password field specific padding */
#login #loginform #user_pass {
    padding-right: 45px !important;
}

#login #loginform #user_login:focus,
#login #loginform #user_pass:focus {
    border-color: #004274 !important;
    box-shadow: 0 0 0 3px rgba(0, 66, 116, 0.15) !important;
    outline: none !important;
    background: #fff !important;
}

/* Password wrapper - this is now the positioning context */
.wp-pwd {
    position: relative !important;
}

/* Password show/hide button */
.wp-pwd .button.wp-hide-pw {
    position: absolute !important;
    right: 1px !important;
    top: 1px !important; /* Corrected position */
    height: 46px !important;
    width: 45px !important;
    border: none !important;
    background: transparent !important;
    border-radius: 0 8px 8px 0 !important;
    color: #555 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}
.wp-pwd .button.wp-hide-pw .dashicons {
    color: #888 !important;
    margin: 0 !important;
}

/* Remember Me Checkbox */
#login .forgetmenot {
    display: flex !important;
    align-items: center !important;
    margin-top: -10px !important;
    margin-bottom: 20px !important;
}
#login .forgetmenot label {
    font-size: 14px !important;
    margin-bottom: 0 !important;
}
#login .forgetmenot #rememberme {
    margin-right: 8px !important;
    width: 16px !important;
    height: 16px !important;
}


/* Submit button area */
#login #loginform p.submit {
    margin-top: 20px !important;
    padding: 0 !important;
    border: 0 !important;
}

/* Submit Button */
#login #loginform #wp-submit {
    background: #004274 !important;
    border: 1px solid #004274 !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 #loginform #wp-submit:hover,
#login #loginform #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;
}
