/* --------------------------
   Full-page background (same for both login and lost password form)
---------------------------- */
body.login, body.lostpassword {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #1c1c1c, #2a2a2a, #1f1f1f);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
    font-family: "Inter", system-ui, sans-serif;
}

/* --------------------------
   Card container for login and lost password form (same design for both)
---------------------------- */
#login, #lostpasswordform {
    width: 100%; /* Ensure the form takes up the full width of its container */
    max-width: 400px; /* Keep the form within the card's width */
    margin: 0 auto; /* Center the form */
    padding: 40px 30px; /* Maintain the padding from the card design */
    border-radius: 20px; /* Ensure the form corners are rounded like the card */
    background-color: #2a2a2a !important; /* Ensure the background matches the card */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important; /* Ensure the shadow is consistent */
    border: none !important; /* Remove form border */
    box-sizing: border-box; /* Prevent overflow */
}

/* --------------------------
   Logo at the top (same for both login and lost password forms)
---------------------------- */
body.login h1 a, body.lostpassword h1 a {
    background-image: url('https://www.fnm.agency/wp-content/uploads/2025/07/Transparent-Logo-e1715858067521.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 200px;
    height: 120px;
    margin: 0 auto 24px;
    text-indent: -9999px;
    overflow: hidden;
}

/* --------------------------
   Input fields (same design for both login and lost password forms)
---------------------------- */
input.input,
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 16px;
    background: #3a3a3a !important;
    border: none !important; /* Remove border around input fields */
    box-shadow: none !important; /* Remove shadow around input fields */
    color: #fff !important;
    border-radius: 6px;
    transition: border 0.2s, box-shadow 0.2s;
}

input.input:focus,
input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #ff7b00 !important;
    box-shadow: 0 0 8px rgba(255, 123, 0, 0.4) !important;
    color: #fff !important;
}

/* --------------------------
   Submit button (same design for both login and lost password forms)
---------------------------- */
#wp-submit {
    width: 100%;
    padding: 12px 14px;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    color: #fff;
    border: none !important;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff7b00 0%, #ff5100 100%);
    box-shadow: 0 8px 30px rgba(255, 81, 0, 0.18);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

#wp-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(255, 81, 0, 0.26);
}

/* --------------------------
   Hide language switcher & Remember Me (same as in the login form)
---------------------------- */
.language-switcher {
    display: none !important;
}

#lostpasswordform label[for="rememberme"] {
    display: none;
}

/* --------------------------
   Background animation (same as in the login form)
---------------------------- */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --------------------------
   Make form labels white (same for both login and lost password forms)
---------------------------- */
#lostpasswordform label,
#lostpasswordform label.screen-reader-text,
#lostpasswordform label[for],
#loginform label,
#loginform label.screen-reader-text,
#loginform label[for] {
    color: #fff !important;
}

/* --------------------------
   Remove borders & shadows (same as in the login form)
---------------------------- */
#lostpasswordform,
#loginform {
    border: none !important; /* Remove form border */
    box-shadow: none !important; /* Remove form shadow */
    outline: none !important;  /* Remove outline */
}

/* Retain borders on the input fields */
#lostpasswordform input.input,
#loginform input.input,
#lostpasswordform input[type="text"],
#loginform input[type="text"],
#lostpasswordform input[type="password"],
#loginform input[type="password"] {
    border: none !important;  /* Remove border around input fields */
    box-shadow: none !important; /* Remove shadow around input fields */
    background: #3a3a3a !important;
}

/* Remove border and shadow from the submit button */
#wp-submit {
    border: none !important;
    box-shadow: none !important;
}

/* --------------------------
   Fix the right margin issue on the lost password form
---------------------------- */
#lostpasswordform {
    margin-right: 0 !important; /* Remove any negative right margin */
    margin-left: 0 auto; /* Center the form (optional) */
    width: 100%; /* Ensure the form takes up the full width */
    max-width: 400px; /* Keep the form within the card's width */
    box-sizing: border-box; /* Prevent overflow */
}



/* Neon orange gradient border on focus for input fields */
#loginform input.input:focus,
#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus {
    outline: none; /* Remove default outline */
    border: 2px solid transparent !important; /* Set a transparent border initially */
    background-image: linear-gradient(to right, #ff7b00, #ff5100);
    background-origin: border-box;
    background-clip: content-box, border-box; /* Ensures the gradient is applied to the border */
    box-shadow: 0 0 8px rgba(255, 123, 0, 0.7) !important; /* Glow effect */
}
