/* Auth Popup Styles - Tailwind Inspired Custom CSS */
:root {
    --stz-primary: #304B3B;
    --stz-secondary-green: #304B3B;
    --stz-muted-foreground: #666666;
    --stz-border: #E5E5E5;
    --stz-bg-white: #ffffff;
    --stz-bg-transparent: transparent;
}

.overflow-hidden {
    overflow: hidden !important;
}

.auth-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
    padding: 60px 20px;
    /* Space for close button and breathing room */
}

.auth-popup-overlay.active {
    display: flex;
}

.auth-popup-container {
    background: var(--stz-bg-white);
    width: 100%;
    max-width: 1152px;
    border-radius: 24px;
    position: relative;
    overflow: visible;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    margin: auto;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .auth-popup-container {
        flex-direction: row;
    }
}

.auth-popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: var(--stz-primary);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.auth-popup-close:hover {
    transform: scale(1.1);
    background: #253a2d;
}

.auth-popup-content {
    display: flex;
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    background: oklch(97% .01 85);
    max-height: 90vh;
}

.auth-popup-content::-webkit-scrollbar {
    width: 6px;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.auth-popup-content::-webkit-scrollbar-thumb {
    background: var(--stz-primary);
    border-radius: 10px;
}

.auth-popup-form-side {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
}

@media (min-width: 1024px) {
    .auth-popup-form-side {
        width: 50%;
    }
}

.auth-form-inner {
    width: 100%;
    position: relative;
    z-index: 2;
    padding: 48px;
    background: var(--stz-bg-white);
}

@media (max-width: 640px) {
    .auth-form-inner {
        padding: 40px 20px;
    }
}

.decor-svg-top-left {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
    display: none;
}

.decor-svg-top-left svg {
    width: 100%;
    height: 100%;
    max-height: 144px;
}

@media (min-width: 768px) {
    .decor-svg-top-left {
        display: block;
    }
}

.auth-title {
    font-size: 3rem;
    font-weight: 600;
    color: var(--stz-primary);
    text-align: center;
    line-height: 1.625;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.auth-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    color: var(--stz-primary);
    text-align: center;
    margin-bottom: 30px;
    font-weight: 400;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--stz-primary);
    margin-bottom: 8px;
}

.input-with-icon {
    position: relative;
    margin-top: 8px;
}

.input-with-icon input {
    width: 100%;
    padding: 16px 20px;
    padding-right: 45px;
    border: 1px solid var(--stz-border);
    border-radius: 52px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    background: transparent;
    transition: all 0.3s;
    color: #000;
}

.input-with-icon input::placeholder {
    color: rgba(48, 75, 59, 0.5);
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--stz-primary);
    box-shadow: 0 0 0 2px rgba(48, 75, 59, 0.1);
}

.input-with-icon .lucide,
.input-with-icon .password-toggle-btn {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.password-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--stz-muted-foreground);
}

.remember-me input {
    margin-right: 8px;
    accent-color: var(--stz-primary);
}

.forgot-password {
    color: var(--stz-primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--stz-primary);
    color: #fff;
    border: none;
    border-radius: 52px;
    font-size: 18px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.4s ease-out;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.auth-submit-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #000;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease-out;
    z-index: -1;
}

.auth-submit-btn:hover::before {
    transform: scaleX(1);
}

.auth-divider {
    text-align: center;
    position: relative;
    margin: 25px 0;
}

.auth-divider span {
    color: var(--stz-muted-foreground);
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}

.social-login {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 1px solid var(--stz-border);
    border-radius: 12px;
    background: transparent;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    gap: 8px;
    transition: all 0.2s;
    cursor: pointer;
}

.social-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.social-btn svg {
    width: 20px;
    height: 20px;
}

.auth-switch {
    text-align: center;
    font-size: 14px;
    color: var(--stz-muted-foreground);
    font-family: 'Poppins', sans-serif;
}

.switch-btn {
    background: none;
    border: none;
    color: var(--stz-primary);
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    margin-left: 4px;
    position: relative;
}

.switch-btn::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 2px;
    width: 100%;
    background: var(--stz-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.switch-btn:hover::after {
    transform: scaleX(1);
}

/* Image Side */
.auth-popup-image-side {
    display: none;
    flex: 1;
    background: oklch(97% .01 85);
    position: relative;
    padding: 48px;
}

@media (min-width: 1024px) {
    .auth-popup-image-side {
        display: flex;
        width: 50%;
        align-items: center;
        justify-content: center;
    }
}

.decor-svg-top-right {
    position: absolute;
    top: -40px;
    right: 0;
    z-index: 1;
}

.auth-image-container {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

.auth-image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Form Visibility */
.auth-form-wrapper {
    display: none;
}

.auth-form-wrapper.active {
    display: block;
    animation: authFadeIn 0.4s ease;
}

@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* clipPath */

/* SVG Hidden */
svg.clippy {
    position: absolute;
    width: 0;
    height: 0;
    top: -999px;
    left: -999px;
}

/* Base Masked Image */
.masked-image {
    position: relative;
}

/* Border Variant */
.masked-image.mask-border {
    background: var(--accent);
    padding: 4px;
}

/* Square / Shield Shared */
.masked-image.square img,
.masked-image.shield img,
.masked-image.shield-ig-inner img,
.masked-image.shield-ig-outer img {
    aspect-ratio: 1 / 1;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Square */
.masked-image.square {
    clip-path: url(#clip-square);
    aspect-ratio: 1 / 1.3358778625954197;
    margin: 0 auto;
    max-width: 100%;
}

/* Shield */
.masked-image.shield {
    clip-path: url(#clip-shield);
}

/* Shield Instagram */
.masked-image.shield-ig {
    clip-path: url(#clip-shield-ig);
    aspect-ratio: 1 / 1.3358778625954197;
    margin: 0 auto;
    max-width: 100%;
}

/* Shield IG Inner */
.masked-image.shield-ig-inner {
    clip-path: url(#clip-shield-ig-inner-desktop);
}

/* Shield IG Outer */
.masked-image.shield-ig-outer {
    clip-path: url(#clip-shield-ig-outer-desktop);
}

/* Mobile */
@media (max-width: 991px) {

    .masked-image.shield-ig-inner {
        clip-path: url(#clip-shield-ig-inner-mobile);
    }

    .masked-image.shield-ig-outer {
        clip-path: url(#clip-shield-ig-outer-mobile);
    }
}