/**
 * Custom Login Page Styles
 *
 * @package See2Buy\AdminLogin
 */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

* {
    font-family: "Open Sans", sans-serif !important;
}



#login {
    width: 100%;
    padding: 0 !important;
}

.wp-pwd button {
    display: none !important;
}

#login h1 {
    display: none !important;
}

/* Login Form Container */
#login-form {
    padding-top: 5%;
}

#login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
    height: 100vh;
}

.platform-information {
    text-align: center;
    width: 40%;
}

#login-form {
    width: 30%;
}

.platform-information h2 {
    color: white !important;
    font-size: 32px !important;
    margin-top: 0 !important;
}

.platform-information span a {
    color: white;
    text-decoration: none;
    font-weight: 100;
    font-size: 27px;
}

.user-pass-wrap {
    width: 100%;
    margin: 10px 0 0 0 ;
}

/* Login Form */
#loginform {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 30px;
}

/* Logo Styling (Hardcoded) */
#login h1 a {
    background-image: url('https://cgtest.ussl.nl/wp-content/uploads/2025/11/SEE2White-logo.svg');
    background-size: contain;
    width: 100%;
    height: 80px;
    margin-bottom: 25px;
}

/* Background Image (Hardcoded) */
body.login {
    background-image: url('../images/background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

#login {
    position: relative;
    z-index: 1;
}

/* Input Fields */
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px 15px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    width: 100%;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

/* Labels - hide them */
.login label {
    display: none !important;
}
.forgetmenot label {
    display: inline-block !important;
}

/* Hide default nav with lost password */
#login #nav {
    display: none !important;
}

/* Style for our custom lost password link */
.s2b-lost-password {
    margin-top: 10px !important;
    margin-bottom: 15px !important;
    text-align: center;
}

.s2b-lost-password a {
    color: #50575e;
    text-decoration: none;
}

.s2b-lost-password a:hover {
    color: #2271b1;
}

/* Submit Button */
.wp-core-ui .button-primary {
    background: #284f76;
    box-shadow: none;
    text-shadow: none;
    border-radius: 4px;
    padding: 8px 24px;
    font-size: 16px;
    font-weight: 600;
    height: auto;
    line-height: 1.5;
    transition: all 0.3s ease;
    color: white;
    width: 100%;
    border: none;
}

#login-form h2,
#login-form .s2b-login-title {
    color: #284f76;
    text-align: center;
    font-size: 21px;
    margin-bottom: 40px;
    margin-top: 0;
}

.wp-core-ui .button-primary:hover,
.wp-core-ui .button-primary:focus {
    background: #005a87;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.3);
}

.wp-core-ui .button-primary:active {
    transform: translateY(1px);
}

/* Remember Me Checkbox */
.login .forgetmenot label {
    font-size: 13px;
    font-weight: normal;
}

input[type="checkbox"]:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

/* Links */
#login-form #nav a,
#login-form #backtoblog a {
    color: #50575e;
    text-decoration: none;
    transition: color 0.3s ease;
}

#login-form #nav a:hover,
#login-form #backtoblog a:hover {
    color: #2271b1;
}

/* Messages */
.login .message,
.login .success {
    background: #e7f3ff;
    border-left: 4px solid #0073aa;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 16px;
}

.login #login_error {
    background: #fef7f7;
    border-left: 4px solid #d63638;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

/* reCAPTCHA Styling */
.s2b-recaptcha-wrapper {
    margin: 15px 0;
    display: flex;
    justify-content: center;
}

.s2b-recaptcha-wrapper .g-recaptcha {
    transform: scale(1);
    transform-origin: 0 0;
}

/* OTP Input Field */
.s2b-otp-wrapper input[type="text"] {
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

/* Responsive Design */
@media screen and (max-width: 480px) {
    #login {
        padding: 20px;
    }

    #loginform {
        padding: 20px;
    }

    .s2b-recaptcha-wrapper .g-recaptcha {
        transform: scale(0.85);
        transform-origin: 0 0;
    }
}

/* Language Switcher - Hide */
.language-switcher {
    display: none !important;
}

/* Privacy Policy Link - Hide */
.privacy-policy-page-link {
    display: none !important;
}

/* Loading Animation */
.login .button-primary.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.login .button-primary.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Custom Footer Styling */
.s2b-login-footer {
    margin-top: 30px;
    text-align: center;
}

.s2b-login-footer p {
    color: #50575e;
    font-size: 14px;
    margin: 10px 0;
}

.s2b-login-footer a {
    color: #2271b1;
    text-decoration: none;
}

.s2b-login-footer a:hover {
    text-decoration: underline;
}

/* Platform Information Block - Responsive for both modes */
#login-container .platform-information {
    text-align: center;
}

#login-container .platform-information h2 {
    color: white !important;
    font-size: 32px !important;
    margin: 0 0 10px !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

#login-container .platform-information span a {
    color: white;
    text-decoration: none;
    font-weight: 100;
    font-size: 27px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

#login-container .platform-information span a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media screen and (max-width: 1024px) {
    #login-container {
        flex-direction: column !important;
        gap: 40px !important;
        padding: 20px;
    }
    
    #login-form,
    #login-container .platform-information {
        width: 100% !important;
        max-width: 400px;
    }
}

.lost-password-and-forgetmenot {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}

.login form .forgetmenot{
    display: none !important;
}