/*
 * Custom WordPress Login Styles
 * Based on the lighthouse mockup.
 */


/* 1. Set the background image on the whole screen */
body.login {
    background-image: url('images/login-page-firstchoice.webp');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    position: relative;
}

/* 2. Position the whole login form container */
#login {
    width: 400px;
    padding: 20px 0;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Vertical centering for desktop */
@media (min-height: 600px) {
    #login {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

/* 3. Style and position the Custom Logo */
.login h1 {
    width: 100%;
    margin-bottom: 20px;
}

.login h1 a {
    background-image: url('images/login-page-logo.svg') !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    display: block !important;
    width: 100% !important;
    max-width: 400px !important;
    height: 120px !important;
    text-indent: -9999px !important;
    /* Fixed: Added px */
    overflow: visible !important;
    margin: 0 auto !important;
}

/* 4. The "Welcome to the Portal" Message */
.login #login_error,
.login .message {
    border-left: none;
    background-color: transparent;
    color: #ffffff;
    text-align: center;
    font-size: 1.3em;
    font-weight: 500;
    box-shadow: none;
    padding: 0;
    margin-bottom: 30px;
}

/* 5. The Main Form Container (The Glassmorphism Box) */
.login form {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px 30px;
    width: 100%;
    margin-top: 0;
}

.login label {
    color: #f1f1f1;
    font-weight: 400;
}

/* 6. Text input styling */
.login form .input,
.login input[type=text],
.login input[type=password] {
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    border-radius: 6px;
    color: #333;
    padding: 10px;
    font-size: 16px;
    margin-bottom: 20px;
}

/* Input focus style */
.login form .input:focus,
.login input[type=text]:focus,
.login input[type=password]:focus {
    border-color: #1e3a8a;
    box-shadow: 0 0 5px rgba(30, 58, 138, 0.5);
}

/* Style the submit button */
.login .button-primary {
    background: #1e3a8a !important;
    border-color: #1e3a8a !important;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    padding: 10px;
    height: auto;
    width: 100%;
}

.login .button-primary:hover {
    background: #2563eb !important;
}

/* 7. Hide Footer links */
.login #nav,
.login #backtoblog {
    display: none;
}