/* Zoomies Membership - WordPress Login Page Styles */
/* Two-column layout with image left, form right */

/* Body and Background */
body.login {
    background: #ffffff;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main container - split layout */
body.login::before {
    content: '';
    position: fixed;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background: #f8f8f8 url('/wp-content/uploads/2026/01/login-bg-1.jpg') no-repeat center center;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* Login Form Container */
#login {
    width: 100%;
    max-width: 450px;
    padding: 60px 40px;
    margin-left: 50%;
    margin-right: 0;
}

/* Hide Logo */
.login h1 {
    display: none;
}

/* Form Heading - Add custom heading above form */
.login form::before {
    content: 'Welcome Back';
    display: block;
    font-size: 28px;
    font-weight: 600;
    color: #171717;
    margin-bottom: 32px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Hide any duplicate text that appears at bottom */
.login #backtoblog + p,
.login form + p {
    display: none !important;
}

/* Ensure forgot password link is visible */
.login #nav {
    display: block !important;
    visibility: visible !important;
}

.login #nav a {
    display: inline-block !important;
}

/* Main Login Form */
.login form {
    background: #ffffff;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

/* Form Labels */
.login label {
    color: #241E1E;
    font-family: "Outfit", Sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    letter-spacing: 0.65px;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: block;
    transition: color 0.2s ease;
}

/* Label color change on input hover/focus */
.login label:has(+ input:hover),
.login label:has(+ input:focus),
.login p:has(input:hover) label,
.login p:has(input:focus) label,
.login .user-pass-wrap:has(input:hover) label,
.login .user-pass-wrap:has(input:focus) label {
    color: #57725A;
}

/* Specific selectors for WordPress login form structure */
.login #user_login:hover ~ label[for="user_login"],
.login #user_login:focus ~ label[for="user_login"],
.login #user_pass:hover ~ label[for="user_pass"],
.login #user_pass:focus ~ label[for="user_pass"],
.login #loginform p:has(#user_login:hover) label,
.login #loginform p:has(#user_login:focus) label,
.login #loginform p:has(#user_pass:hover) label,
.login #loginform p:has(#user_pass:focus) label,
.login #loginform .user-pass-wrap:has(#user_pass:hover) label,
.login #loginform .user-pass-wrap:has(#user_pass:focus) label {
    color: #57725A;
}

/* Input Fields */
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
    background: #ffffff;
    border: 1px solid #8D8D8D;
    border-radius: 4px;
    padding: 12px 16px;
    font-size: 15px;
    color: #171717;
    box-shadow: none;
    transition: border-color 0.2s ease;
    width: 100%;
}

.login input[type="text"]:hover,
.login input[type="password"]:hover,
.login input[type="email"]:hover {
    border-color: #57725A;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
    border-color: #57725A;
    box-shadow: none;
    outline: none;
}

/* Error state for inputs */
.login input[type="text"].error,
.login input[type="password"].error,
.login input[type="email"].error,
.login #login_error + form input[type="text"],
.login #login_error + form input[type="password"] {
    border-color: #D74715;
}

/* Submit Button */
.login .button-primary {
    background: #241E1E;
    border: none;
    border-radius: 300px;
    color: #ffffff;
    padding: 0 48px;
    font-family: "Outfit", Sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 150%;
    letter-spacing: 0.64px;
    text-transform: uppercase;
    text-shadow: none;
    box-shadow: none;
    width: 100%;
    height: 51px;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* Arrow icon */
.login .button-primary::after {
    content: '';
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12H19' stroke='white' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M12 5L19 12L12 19' stroke='white' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 24px 24px;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    flex-shrink: 0;
}

.login .button-primary:hover,
.login .button-primary:focus {
      background: #E2A422;
    color: #241E1E;
    border-color: #FFFBEA;
    outline:none;
}

.login .button-primary:active {
     background: #E85D3C;
    color: #FFFFFF;
    border-color: #E85D3C;
      outline:none;
}

/* Remember Me Checkbox */
.login .forgetmenot {
    margin-top: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.login .forgetmenot label {
    font-family: "Outfit", Sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.72px;
    color: #241E1E;
    text-transform: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin: 0;

}

.login input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    border: 1px solid #8D8D8D;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
    vertical-align: middle;
}

.login input[type="checkbox"]:checked {
    background: #241E1E;
    border-color: #241E1E;
}

.login input[type="checkbox"]:hover {
    border-color: #57725A;
}

/* Links */
.login #nav a,
.login #backtoblog a {
    color: #241E1E;
    text-decoration: none;
    font-family: "Outfit", Sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 150%;
    transition: color 0.2s ease;
}

.login #nav a:hover,
.login #backtoblog a:hover {
    color: #57725A;
}

/* Navigation Links Container */
.login #nav {
    padding: 0;
    margin: 20px 0 8px 0;
    text-align: left;
}

.login #backtoblog {
    padding: 0;
    margin: 8px 0;
    text-align: left;
}

/* Add subtitle text after login button */
.login #backtoblog::before {
    content: 'Log in to access your membership';
    display: block;
    font-size: 16px;
    color: #241E1E;
    font-weight: 400;
    margin-bottom: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    text-align: left;
    display:none;
}

/* Error Messages */
.login #login_error,
.login .message,
.login .success {
    border-left: 3px solid #171717;
    background: #f9f9f9;
    border-radius: 4px;
    padding: 14px 16px;
    box-shadow: none;
    font-size: 14px;
    margin-bottom: 20px;
}

.login #login_error {
    border-left-color: #dc3545;
    background: #fef2f2;
}

.login .message,
.login .success {
    border-left-color: #28a745;
    background: #f0fdf4;
}

/* Privacy Policy Link */
.login .privacy-policy-page-link {
    text-align: left;
    margin-top: 16px;
}

.login .privacy-policy-page-link a {
    color: #666666;
    text-decoration: none;
    font-size: 13px;
}

.login .privacy-policy-page-link a:hover {
    color: #171717;
}

/* Language Switcher */
.login .language-switcher {
    text-align: left;
    margin-top: 16px;
}

/* Responsive */
@media screen and (max-width: 1024px) {
    body.login::before {
        width: 40%;
    }
    
    #login {
        margin-left: 40%;
        padding: 40px 30px;
    }
}

@media screen and (max-width: 768px) {
    body.login::before {
        display: none;
    }
    
    #login {
        margin-left: auto;
        margin-right: auto;
        max-width: 400px;
        padding: 40px 24px;
    }
    
    .login form::before {
        font-size: 24px;
    }
}

/* Modal/Popup Login Styles */
.interim-login {
    background: rgba(0, 0, 0, 0.5) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.interim-login #login {
    background: #ffffff;
    border-radius: 8px;
    padding: 40px !important;
    margin: 0 !important;
    max-width: 450px !important;
    width: 90% !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.interim-login body.login::before {
    display: none !important;
}

.interim-login .login form {
    padding: 0 !important;
    margin: 0 !important;
}

.interim-login .login form::before {
    margin-bottom: 24px;
}

.interim-login .login .message {
    margin-bottom: 24px;
}

/* Adjust form field spacing in modal */
.interim-login .login form p {
    margin-bottom: 20px;
}

.interim-login .login .forgetmenot {
    margin-top: 16px;
    margin-bottom: 16px;
}

.interim-login .login .submit {
    margin-top: 24px;
    margin-bottom: 0;
}

/* Hide navigation links in modal if needed */
.interim-login .login #nav,
.interim-login .login #backtoblog {
    display: none;
}
