/* Minimal Cross-browser CSS Reset & Normalize */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    /* Smooth scrolling and font anti-aliasing */
    scroll-behavior: smooth;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif !important;
    /* Prevent horizontal scroll issues while preserving sticky positioning */
    overflow-x: clip;
}

/* Scrollbar Styling for Cross-Browser Consistency */
/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

/* Chrome, Edge, Safari, Opera */
*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 20px;
    border: 2px solid transparent;
    background-clip: content-box;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font-family: 'Poppins', sans-serif !important;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
    font-family: 'Poppins', sans-serif !important;
}

/* ============================================================ 
   DIAMOND STANDARD: GLOBAL PASSWORD TOGGLE 
   ============================================================ */
.password-field-wrapper {
    position: relative !important;
    width: 100% !important;
    display: block !important;
}

.password-toggle-btn {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #64748b !important;
    /* Slate-500 */
    cursor: pointer !important;
    background: transparent !important;
    border: none !important;
    padding: 8px !important;
    font-size: 1.15rem !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 50 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    outline: none !important;
    opacity: 0.7 !important;
    box-shadow: none !important;
    margin: 0 !important;
}

.password-toggle-btn:hover {
    color: #f97316 !important;
    /* LP Primary Orange */
    transform: translateY(-50%) scale(1.15) !important;
    opacity: 1 !important;
}

.password-toggle-btn:active {
    transform: translateY(-50%) scale(0.9) !important;
}

.password-toggle-btn i {
    pointer-events: none !important;
}

/* Adjust input padding when toggle is present */
.minimal-input.has-toggle {
    padding-right: 3.5rem !important;
}

/* ============================================================ 
   DIAMOND STANDARD: SHARED AUTH UI (SOCIAL & DIVIDERS)
   ============================================================ */
.auth-divider {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    margin: 1.5rem 0 !important;
    color: #94a3b8 !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    width: 100% !important;
}

.auth-divider::before,
.auth-divider::after {
    content: '' !important;
    flex: 1 !important;
    height: 1px !important;
    background: #e2e8f0 !important;
}

.social-auth-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    margin-bottom: 1.5rem !important;
    width: 100% !important;
}


.btn-social {
    width: 100% !important;
    height: 44px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    background: #fff !important;
    border: 1px solid #dadce0 !important;
    color: #3c4043 !important;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15) !important;
    white-space: nowrap !important;
}

.btn-social:hover {
    background-color: #f8f9fa !important;
    border-color: #d2d4d7 !important;
    box-shadow: 0 1px 3px 0 rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15) !important;
    transform: translateY(-1px) scale(1.01) !important;
}

.btn-social svg {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
    flex-shrink: 0 !important;
}


.btn-google-premium {
    /* Inherits from .btn-social, specifically for Google */
}


/* ============================================================ 
   DIAMOND STANDARD: GLOBAL ALERT MODALS (SweetAlert2)
   ============================================================ */
.swal2-container {
    z-index: 100000 !important;
}

.premium-swal-popup {
    border-radius: var(--border-radius, 1.5rem) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    padding: 2rem !important;
    border: 1px solid #e2e8f0 !important;
    font-family: 'Poppins', sans-serif !important;
}

.premium-swal-popup .swal2-title {
    font-weight: 800 !important;
    color: #1e293b !important;
    font-size: 1.5rem !important;
}

.premium-swal-popup .swal2-html-container {
    font-weight: 500 !important;
    color: #475569 !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
}

.premium-swal-btn {
    border-radius: 0.75rem !important;
    font-weight: 700 !important;
    padding: 0.75rem 2rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    font-size: 0.85rem !important;
    transition: all 0.3s ease !important;
}

.premium-swal-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}
