/* --- Hide form during checkout verification to prevent flash --- */
body.verifying-checkout #wp-su-login-wrapper {
    display: none;
}

/* Import Google Font */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,800');

/* --- Scoped Styles --- */
#wp-su-login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: 'Montserrat', sans-serif;
    padding: 40px 0;
    width: 100%;
    min-height: 100vh;
    background-color: #fff; /* Light background */
}

#wp-su-login-wrapper * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#wp-su-login-wrapper h1 {
    font-weight: bold;
    margin: 0;
    font-size: 2em;
    margin-bottom: 0.5em;
    color: #fff; /* Dark text */
}
#form-h1 {
	color: #333 !important;
}
#wp-su-login-wrapper h2 {
    text-align: center;
    font-size: 1.5em;
    margin-bottom: 0.75em;
    color: #fff;
}

#wp-su-login-wrapper p {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0.5px;
    margin: 20px 0 30px;
    color: #fff;
}

#wp-su-login-wrapper span {
    font-size: 12px;
    display: block;
    margin: 10px 0;
    color: #333;
}

#wp-su-login-wrapper a {
    color: #DF0050; /* Theme color */
    font-size: 14px;
    text-decoration: none;
    margin: 15px 0;
    display: inline-block;
}

#wp-su-login-wrapper a.wp-su-login-social {
    margin: 0 5px;
    border: 1px solid #DDDDDD;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    width: 40px;
    color: #DF0050; /* Theme color */
    background-color: #eee;
    transition: background-color 0.3s ease;
}

#wp-su-login-wrapper a.wp-su-login-social:hover {
    background-color: #ddd;
}

#wp-su-login-wrapper button {
    border-radius: 20px;
    border: 1.7px solid #DF0050; /* Theme color */
    background-color: #DF0050; /* Theme color */
    color: #FFFFFF;
    font-size: 12px;
    font-weight: bold;
    padding: 12px 45px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 80ms ease-in;
    cursor: pointer;
    margin-top: 10px;
}

#wp-su-login-wrapper button:active {
    transform: scale(0.95);
}

#wp-su-login-wrapper button:focus {
    outline: none;
}

#wp-su-login-wrapper button.wp-su-login-ghost {
    background-color: transparent;
    border-color: #FFFFFF;
    color: #FFFFFF; /* White text on transparent bg */
}

#wp-su-login-wrapper form {
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 50px;
    height: 100%;
}

#wp-su-login-wrapper input {
    background-color: #eee;
    padding: 12px 15px;
    margin: 8px 0;
    color: #333; /* Dark text */
}

/* Scoped Container Styles */
#wp-su-login-wrapper .wp-su-login-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
    position: relative;
    overflow: hidden;
    width: 900px;
    max-width: 100%;
    min-height: 600px;
}

#wp-su-login-wrapper .wp-su-login-form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

#wp-su-login-wrapper .wp-su-login-sign-in-container {
    left: 0;
    width: 50%;
    z-index: 2;
}

#wp-su-login-wrapper .wp-su-login-container.right-panel-active .wp-su-login-sign-in-container {
    transform: translateX(100%);
}

#wp-su-login-wrapper .wp-su-login-sign-up-container {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

#wp-su-login-wrapper .wp-su-login-container.right-panel-active .wp-su-login-sign-up-container {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: wpSuLoginShow 0.6s;
}

@keyframes wpSuLoginShow {
    0%, 49.99% {
        opacity: 0;
        z-index: 1;
    }
    50%, 100% {
        opacity: 1;
        z-index: 5;
    }
}

#wp-su-login-wrapper .wp-su-login-overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
}

#wp-su-login-wrapper .wp-su-login-container.right-panel-active .wp-su-login-overlay-container {
    transform: translateX(-100%);
}

#wp-su-login-wrapper .wp-su-login-overlay {
    background: #DF0050; /* Theme color */
    background: linear-gradient(to right, #DF0050, #DF0050); /* Theme color */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0 0;
    color: #FFFFFF;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

#wp-su-login-wrapper .wp-su-login-container.right-panel-active .wp-su-login-overlay {
    transform: translateX(50%);
}

#wp-su-login-wrapper .wp-su-login-overlay-panel {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    top: 0;
    height: 100%;
    width: 50%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
    color: #FFFFFF; /* White text on colored bg */
}

#wp-su-login-wrapper .wp-su-login-overlay-left {
    transform: translateX(-20%);
}

#wp-su-login-wrapper .wp-su-login-container.right-panel-active .wp-su-login-overlay-left {
    transform: translateX(0);
}

#wp-su-login-wrapper .wp-su-login-overlay-right {
    right: 0;
    transform: translateX(0);
}

#wp-su-login-wrapper .wp-su-login-container.right-panel-active .wp-su-login-overlay-right {
    transform: translateX(20%);
}

#wp-su-login-wrapper .wp-su-login-social-container {
    margin: 20px 0;
}

/* Responsive adjustments (example) */
@media (max-width: 768px) {
    #wp-su-login-wrapper h1 {
        font-size: 1.5em;
    }
    #wp-su-login-wrapper p {
        font-size: 13px;
        margin: 15px 0 20px;
    }
    #wp-su-login-wrapper button {
        padding: 10px 30px;
    }
    #wp-su-login-wrapper form {
        padding: 0 30px;
    }
    #wp-su-login-wrapper .wp-su-login-overlay-panel {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    #wp-su-login-wrapper .wp-su-login-container {
        min-height: 540px;
    }
    .wp-su-login-overlay-container{
    display: none;
  }
  #wp-su-login-wrapper .wp-su-login-sign-in-container {
    width: 100%;
}    
  #wp-su-login-wrapper .wp-su-login-sign-up-container {
    width: 100%;
	transform: translateX(0%) !important;
} 
    #wp-su-login-wrapper h1 {
        font-size: 1.3em;
        margin-bottom: 0.3em;
    }
    #wp-su-login-wrapper span, #wp-su-login-wrapper a {
        font-size: 11px;
    }
    #wp-su-login-wrapper input {
        padding: 10px 12px;
        margin: 6px 0;
    }
    #wp-su-login-wrapper button {
        padding: 9px 25px;
        font-size: 11px;
    }
    #wp-su-login-wrapper .wp-su-login-social-container {
        margin: 15px 0;
    }
    #wp-su-login-wrapper a.wp-su-login-social {
        height: 35px;
        width: 35px;
    }
}

/* --- New Overlay Branding Styles --- */
.wp-su-login-overlay-panel .logo {
    max-width: 200px;
    margin-bottom: 25px !important;
    filter: brightness(0) invert(1); /* Makes the logo white */
}

.wp-su-login-overlay-panel .overlay-heading {
    font-size: 2.1rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.3;
    color: #fff !important; /* Ensure it overrides other h1 styles */
}

.wp-su-login-overlay-panel .overlay-text {
    font-size: 1rem;
    max-width: 320px;
    opacity: 0.9;
    margin: 0 0 30px 0;
}

/* Ensure original h1/p in overlay are replaced by new classes */
.wp-su-login-overlay-panel > h1:not(.overlay-heading),
.wp-su-login-overlay-panel > p:not(.overlay-text) {
    display: none;
}


/* --- New Form Input Styles (Keeping Original Layout) --- */

.wp-su-login-form-container form {
    text-align: left;
}

.wp-su-login-form-container .form-title {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    margin-bottom: 25px !important;
    text-align: left;
    color: #212529 !important;
}

.wp-su-login-form-container .form-group {
    margin-bottom: 15px;
    width: 100%;
    position: relative;
}

.wp-su-login-form-container label {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    color: #212529 !important;
}

.wp-su-login-form-container input[type="text"],
.wp-su-login-form-container input[type="email"],
.wp-su-login-form-container input[type="password"] {
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 7px;
    font-size: 0.9rem;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #fff !important; /* Override existing background */
    width: 100% !important;
}

.wp-su-login-form-container input:focus {
    outline: none;
    border-color: #df0050;
    box-shadow: 0 0 0 3px rgba(223, 0, 80, 0.25);
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 46px;
    cursor: pointer;
    color: #6c757d;
    font-size: 1rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    margin-top: 15px;
    margin-bottom: 25px;
    color: #6c757d;
    width: 100%;
}

.form-options .remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
}

.form-options .remember-me input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.form-options a {
    color: #df0050;
    text-decoration: none;
    font-size: 13px;
}

.submit-btn {
    /* width: 100%; */
    padding: 11px;
    background-color: #df0050;
    color: white;
    border: none;
    border-radius: 7px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    text-transform: uppercase;
}

.submit-btn:hover {
    background-color: #c80048;
    transform: translateY(-2px);
}

/* --- Password Toggle Icon Positioning --- */
.wp-su-login-form-container .password-group {
    position: relative;
}

.wp-su-login-form-container .password-toggle {
    position: absolute;
    right: 15px;
    /* Vertically center the icon relative to the input field's height */
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    font-size: 1rem;
}

/* Adjust position if you have labels above the inputs */
.wp-su-login-form-container .form-group label + input + .password-toggle {
    /* If there's a label, the input is pushed down, so we adjust the icon's top position */
    top: 46px;
    transform: none; /* Reset the transform since we're setting top manually */
}