@import url("https://use.typekit.net/kpb4bte.css");

/* Reset and base styles */
body.login {
    background: white;
    display: flex;
    min-height: 100vh;
    margin: 0;
    font-family: "area-normal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Hide default WordPress elements */
#backtoblog,
.language-switcher {
    display: none;
}

/* Left side image */
.login::before {
    content: '';
    position: fixed;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background-image: url('https://sukkatshalom-bneinoach.com/wp-content/themes/sukkat/Groningen.webp');
    background-size: cover;
    background-position: center;
    z-index: 1;
    
}

/* Logo */
.login::after {
    content: '';
    position: fixed;
    top: 20px;
    left: 20px;
    width: 150px;
    height: 50px;
    background-image: url("https://sukkatshalom-bneinoach.com/wp-content/themes/sukkat/sukkat-logo-full-color-rgb.svg");
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 2;
    filter: brightness(0) invert(1) opacity(0.5);
}

/* Login/Reset form container */
#login {
    position: absolute;
    right: 0;
    width: 50%;
    max-width: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    flex-direction: column;
    margin-top: 0;
}

/* WP Login Logo */
.wp-login-logo {
    height: 50px;
    margin-bottom: 30px;
}

.wp-login-logo a {
    background-image: url("https://sukkatshalom-bneinoach.com/wp-content/themes/sukkat/sukkat-logo-full-color-rgb.svg") !important;
    background-size: contain !important;
    width: 100% !important;
    height: 100% !important;
}

/* Common form styles for both login and reset */
#loginform,
#lostpasswordform {
    background: none;
    box-shadow: none;
    padding: 40px;
    margin: 0;
    width: 400px;
    position: relative;
    border: 0;
}

/* Form header text */
#loginform::before {
    content: 'Sign in to your account';
    display: block;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #000;
}

#lostpasswordform::before {
    content: 'Reset your password';
    display: block;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #000;
    pointer-events: none;
}

#loginform::after {
    content: 'Enter your email and password below to continue';
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 32px;
    transform: translateY(10px);
    pointer-events: none;
}

#lostpasswordform::after {
    content: 'Enter your email address below to reset your password';
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 32px;
    transform: translateY(10px);
}

/* Form labels */
#loginform label,
#lostpasswordform label {
    display: block;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

/* Form inputs */
#loginform input[type="text"],
#loginform input[type="password"],
#lostpasswordform input[type="text"] {
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 12px;
    height: auto;
    font-size: 14px;
    width: 100%;
    background: #f5f5f5;
}

/* Input placeholders */
#loginform input[type="text"]::placeholder,
#loginform input[type="password"]::placeholder,
#lostpasswordform input[type="text"]::placeholder {
    color: #999;
}

/* Submit button */
#wp-submit {
    width: 100%;
    padding: 12px;
    height: auto;
    background: #000;
    border: none;
    border-radius: 8px;
    text-transform: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
    color: white;
    margin-top: 24px;
}

#wp-submit:hover {
    background: #333;
}

/* Remember me checkbox */
.forgetmenot {
    margin: 16px 0;
    font-size: 14px;
    color: #666;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 999;
    position: relative;
}

/* Message box styles */
.login .message,
.login .notice,
.login .success {
    border-radius: 10px;
    border: 0;
    box-shadow: none;
    border-top: 4px solid #19A8A0;
    background: #f5f5f5;
    color: #333;
    padding: 12px 24px;
    margin-bottom: 24px;
    font-size: 14px;
    width: 400px;
    box-sizing: border-box;
}

/* Navigation links */
#nav {
    text-align: center;
    margin: 20px 0;
    padding: 0;
    font-size: 14px;
    position: relative;
    width: 400px;
}

#nav a {
    color: #666;
    text-decoration: none;
}

#nav a:hover {
    color: #000;
}

/* Responsive styles */
@media (max-width: 768px) {
    .login::before {
        display: none;
    }
    
    #login {
        width: 100%;
    }
    
    #loginform,
    #lostpasswordform,
    .login .message,
    .login .notice,
    .login .success,
    #nav {
        width: calc(100% - 40px);
        padding: 20px;
    }
}