/* ==========================================================================
   VENDOR AUTHENTICATION (REGISTER & LOGIN) - ULTRA LUXURY CENTERED SUITE
   Clean, focused, modern single-card layout (No left sidebar)
   Theme: Royal Sapphire #2563eb, Crisp White #ffffff, Slate #0f172a
   ========================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.vendor-auth-body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    color: #1e293b;
    line-height: 1.5;
    position: relative;
    overflow-x: hidden;
    background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 60%),
                radial-gradient(circle at 85% 95%, rgba(99, 102, 241, 0.07) 0%, transparent 50%),
                radial-gradient(circle at 15% 95%, rgba(14, 165, 233, 0.06) 0%, transparent 50%),
                #f8fafc;
}

/* Atmospheric Ambient Blobs */
body.vendor-auth-body::before,
body.vendor-auth-body::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(90px);
}

body.vendor-auth-body::before {
    width: 500px;
    height: 500px;
    top: -150px;
    left: -150px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.16) 0%, transparent 70%);
}

body.vendor-auth-body::after {
    width: 450px;
    height: 450px;
    bottom: -150px;
    right: -150px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
}

/* Top Centered Brand Emblem */
.auth-brand-center {
    position: relative;
    z-index: 2;
    margin-bottom: 22px;
    display: flex;
    justify-content: center;
}

.auth-brand-badge-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 20px 8px 10px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 9999px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-brand-badge-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.12);
    border-color: #cbd5e1;
}

.auth-gem-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.auth-brand-logo-img {
    height: 38px;
    width: auto;
    max-height: 38px;
    display: block;
    object-fit: contain;
    background: transparent;
    border: none;
    box-shadow: none;
    filter: drop-shadow(0 2px 8px rgba(37, 99, 235, 0.22));
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
}

.auth-brand-badge-link:hover .auth-brand-logo-img {
    transform: scale(1.08);
    filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.35));
}

.auth-brand-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-brand-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.auth-brand-chip {
    font-size: 0.65rem;
    font-weight: 800;
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 9999px;
    padding: 2px 8px;
    letter-spacing: 0.06em;
}

/* ==========================================================================
   CENTERED VENDOR AUTH CARD (LUXURY ELEVATION)
   ========================================================================== */
.vendor-auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.09), 
                0 0 35px -10px rgba(37, 99, 235, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.95);
    border: 1.5px solid rgba(226, 232, 240, 0.9);
    padding: 38px 44px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-card-register {
    max-width: 640px;
}

.auth-card-login {
    max-width: 480px;
}

/* Top Actions */
.auth-top-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-back-link:hover {
    color: #2563eb;
}

.auth-security-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 9999px;
    padding: 4px 12px;
    font-size: 0.72rem;
    font-weight: 700;
}

/* Apple / Vercel Segmented Mode Switcher */
.auth-mode-switcher {
    display: flex;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 22px;
    border: 1px solid #e2e8f0;
}

.auth-mode-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 9px;
    font-size: 0.84rem;
    font-weight: 700;
    color: #64748b;
    text-decoration: none;
    transition: all 0.25s ease;
}

.auth-mode-tab.is-active {
    background: #ffffff;
    color: #1e293b;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
}

.auth-mode-tab:hover:not(.is-active) {
    color: #2563eb;
}

/* Form Header */
.auth-form-header {
    margin-bottom: 22px;
}

.auth-eyebrow-chip {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    border-radius: 9999px;
    padding: 3px 12px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.auth-header-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.025em;
    line-height: 1.25;
    margin-bottom: 6px;
}

.auth-header-subtitle {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.5;
}

/* Alert Boxes */
.auth-alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.auth-alert-danger i {
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Form Grid */
.auth-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

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

.auth-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.auth-label .required-star {
    color: #ef4444;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 15px;
    color: #94a3b8;
    font-size: 0.92rem;
    pointer-events: none;
    transition: color 0.2s ease;
}

.auth-control {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 46px;
    border: 1.5px solid #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 500;
    outline: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-control:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12), 0 4px 12px rgba(37, 99, 235, 0.08);
}

.auth-input-wrap:focus-within .auth-input-icon {
    color: #2563eb;
}

textarea.auth-control {
    height: auto;
    padding: 12px 16px 12px 46px;
    resize: vertical;
    font-family: inherit;
}

select.auth-control {
    height: 48px;
    line-height: 1.4;
    padding: 10px 14px 10px 46px;
    font-family: inherit;
}

/* Premium Searchable Currency Picker for Vendor Registration */
.vh-cur-picker {
    position: relative;
    width: 100%;
}

.vh-cur-trigger {
    width: 100%;
    min-height: 48px;
    padding: 6px 14px 6px 8px;
    border-radius: 14px;
    border: 1.5px solid #cbd5e1;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: all 0.2s ease;
}

.vh-cur-trigger:hover {
    border-color: #94a3b8;
    background: #ffffff;
}

.vh-cur-picker.is-open .vh-cur-trigger,
.vh-cur-trigger:focus-visible {
    outline: none;
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.vh-cur-trigger-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.vh-cur-sym-box {
    min-width: 34px;
    height: 34px;
    padding: 0 7px;
    border-radius: 10px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    color: #2563eb;
    font-size: 0.9rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vh-cur-text-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    flex: 1;
}

.vh-cur-code-pill {
    padding: 2px 7px;
    border-radius: 6px;
    background: #e2e8f0;
    color: #0f172a;
    font-size: 0.72rem;
    font-weight: 800;
    flex-shrink: 0;
}

.vh-cur-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vh-cur-chevron {
    color: #64748b;
    font-size: 0.78rem;
    transition: transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.vh-cur-picker.is-open .vh-cur-chevron {
    transform: rotate(180deg);
    color: #2563eb;
}

.vh-cur-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 950;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
    overflow: hidden;
    display: none;
}

.vh-cur-picker.is-open .vh-cur-menu {
    display: block;
}

.vh-cur-search-wrap {
    padding: 10px 10px 8px;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vh-cur-search-wrap i {
    color: #94a3b8;
    font-size: 0.8rem;
    margin-left: 6px;
}

.vh-cur-search-input {
    width: 100%;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.84rem;
    color: #0f172a;
    outline: none;
    padding: 4px;
}

.vh-cur-list {
    max-height: 250px;
    overflow-y: auto;
    padding: 6px;
}

.vh-cur-group-lbl {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #94a3b8;
    padding: 8px 10px 4px;
}

.vh-cur-opt {
    width: 100%;
    border: none;
    background: transparent;
    border-radius: 10px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.vh-cur-opt:hover { background: #f1f5f9; }
.vh-cur-opt.is-selected { background: #eff6ff; }

.vh-cur-opt-left {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    flex: 1;
}

.vh-cur-opt-sym {
    min-width: 30px;
    height: 28px;
    padding: 0 5px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vh-cur-opt.is-selected .vh-cur-opt-sym {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.vh-cur-opt-title {
    font-size: 0.83rem;
    font-weight: 600;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vh-cur-opt-code {
    font-weight: 800;
    color: #2563eb;
    margin-right: 5px;
    font-size: 0.76rem;
}

.vh-cur-opt-check {
    color: #2563eb;
    font-size: 0.82rem;
    opacity: 0;
    flex-shrink: 0;
}

.vh-cur-opt.is-selected .vh-cur-opt-check { opacity: 1; }

.vh-cur-empty {
    padding: 16px 12px;
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
    display: none;
}

.auth-field-error {
    display: block;
    color: #dc2626;
    font-size: 0.74rem;
    font-weight: 600;
    margin-top: 4px;
}

.auth-masked-password {
    -webkit-text-security: disc !important;
    text-security: disc !important;
    font-family: inherit !important;
    letter-spacing: 0.12em;
}

.auth-masked-password.is-unmasked {
    -webkit-text-security: none !important;
    text-security: none !important;
    letter-spacing: normal;
}

.password-toggle-btn {
    position: absolute;
    right: 14px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease;
}

.password-toggle-btn:hover {
    color: #334155;
}

/* Password Strength Meter */
.password-strength-wrap {
    margin-top: 8px;
}

.password-strength-bars {
    display: flex;
    gap: 4px;
    height: 4px;
    margin-bottom: 5px;
}

.strength-segment {
    flex: 1;
    height: 100%;
    border-radius: 2px;
    background: #e2e8f0;
    transition: background-color 0.3s ease;
}

.password-strength-text {
    font-size: 0.72rem;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.strength-label-dynamic {
    font-weight: 700;
}

/* Trust Strip inside form */
.auth-trust-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    margin-top: 6px;
    margin-bottom: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
}

.auth-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.auth-trust-item i {
    color: #10b981;
}

/* Submit Button with Luminous Aura */
.btn-auth-submit {
    position: relative;
    width: 100%;
    min-height: 52px;
    height: auto;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.38), 0 0 20px rgba(59, 130, 246, 0.2);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    margin-top: 10px;
    box-sizing: border-box;
}

.btn-auth-submit span {
    display: inline-block;
    line-height: 1.25;
}

.btn-auth-submit::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
}

.btn-auth-submit:hover::before {
    left: 150%;
}

.btn-auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.48), 0 0 25px rgba(59, 130, 246, 0.35);
}

.btn-auth-submit .btn-arrow {
    flex-shrink: 0;
    font-size: 0.9rem;
    margin-left: 2px;
    transition: transform 0.2s ease;
}

.btn-auth-submit:hover .btn-arrow {
    transform: translateX(4px);
}

/* Remember & Extras - Luxury Custom Checkbox */
.auth-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding: 11px 15px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-remember-row:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.auth-custom-checkbox-wrap {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    cursor: pointer;
    user-select: none;
    margin: 0;
    flex: 1;
}

/* Accessible Native Checkbox hiding */
.auth-native-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    margin: 0;
}

/* Luxury Custom Checkbox Box */
.auth-checkbox-control {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 7px;
    border: 2px solid #cbd5e1;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    position: relative;
    box-sizing: border-box;
}

.auth-custom-checkbox-wrap:hover .auth-checkbox-control {
    border-color: #2563eb;
    background: #eff6ff;
    transform: scale(1.05);
}

.auth-native-checkbox:focus-visible + .auth-checkbox-control {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

/* Checked State for Checkbox Box */
.auth-native-checkbox:checked + .auth-checkbox-control {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-color: #1d4ed8;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.38);
    transform: scale(1);
}

/* Checkmark SVG Icon */
.auth-checkmark-icon {
    width: 13px;
    height: 13px;
    color: #ffffff;
    opacity: 0;
    stroke: #ffffff;
    transform: scale(0.3) rotate(-15deg);
    transition: all 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.35);
}

.auth-native-checkbox:checked + .auth-checkbox-control .auth-checkmark-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* Label text hierarchy */
.auth-checkbox-label-text {
    display: flex;
    flex-direction: column;
    gap: 1.5px;
}

.auth-label-main {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.auth-label-sub {
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.25;
}

/* Security Badge on the Right */
.auth-security-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    font-size: 0.70rem;
    font-weight: 700;
    border-radius: 9999px;
    white-space: nowrap;
    letter-spacing: 0.01em;
    box-shadow: 0 1px 2px rgba(21, 128, 61, 0.05);
}

.auth-security-badge i {
    font-size: 0.72rem;
    color: #16a34a;
}

/* Backward compatibility for auth-extra-row / auth-checkbox-label */
.auth-extra-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 0.85rem;
}

.auth-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.85rem;
    cursor: pointer;
    user-select: none;
}

.auth-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
    cursor: pointer;
}

@media (max-width: 480px) {
    .auth-remember-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px 12px;
    }
    .auth-security-badge {
        align-self: flex-start;
        margin-left: 33px;
    }
}

/* Bottom Switcher & Alt Portals */
.auth-footer-block {
    margin-top: 8px;
}

.auth-switch-bar {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: #64748b;
}

.auth-switch-bar a {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-switch-bar a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.auth-alt-portals {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    font-size: 0.78rem;
    color: #94a3b8;
}

.auth-alt-portals a {
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
}

.auth-alt-portals a:hover {
    color: #2563eb;
}

/* Center Bottom Footer */
.auth-center-footer {
    position: relative;
    z-index: 1;
    margin-top: 24px;
    font-size: 0.78rem;
    color: #94a3b8;
    text-align: center;
}

/* ==========================================================================
   RESPONSIVE LAYOUT
   ========================================================================== */
@media (max-width: 680px) {
    .vendor-auth-card {
        padding: 32px 24px;
    }

    .auth-trust-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

@media (max-width: 576px) {
    body.vendor-auth-body {
        padding: 20px 12px;
    }

    .vendor-auth-card {
        border-radius: 22px;
        padding: 26px 18px;
    }

    .auth-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .auth-header-title {
        font-size: 1.55rem;
    }

    .auth-alt-portals {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .btn-auth-submit {
        font-size: 0.88rem !important;
        padding: 12px 14px !important;
        gap: 6px !important;
        white-space: nowrap !important;
    }

    .btn-auth-submit .btn-arrow {
        font-size: 0.82rem !important;
    }
}

@media (max-width: 380px) {
    .btn-auth-submit {
        font-size: 0.82rem !important;
        padding: 11px 10px !important;
        gap: 5px !important;
    }
}

/* ==========================================================================
   ANIMATED CELEBRATORY SUCCESS MODAL (LOGIN & REGISTRATION)
   ========================================================================== */
.auth-success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    z-index: 99999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: authFadeIn 0.25s ease forwards;
}

.auth-success-card {
    background: #ffffff !important;
    opacity: 1 !important;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 28px;
    padding: 42px 36px 36px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 60px -12px rgba(15, 23, 42, 0.35), 0 0 50px rgba(16, 185, 129, 0.22);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: authCardPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.success-icon-wrap {
    position: relative;
    width: 92px;
    height: 92px;
    margin: 0 auto 20px;
}

.success-svg {
    width: 92px;
    height: 92px;
    display: block;
    filter: drop-shadow(0 6px 18px rgba(16, 185, 129, 0.45));
}

.success-circle {
    stroke-dasharray: 230;
    stroke-dashoffset: 230;
    stroke-width: 5;
    stroke-miterlimit: 10;
    stroke: #10b981;
    fill: #ecfdf5;
    animation: circleDraw 0.65s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke: #059669;
    fill: none;
    animation: checkDraw 0.45s 0.45s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-particles {
    position: absolute;
    inset: -15px;
    pointer-events: none;
}

.success-particles .particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: particleBurst 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

.particle.p1 { top: 0; left: 50%; background: #10b981; }
.particle.p2 { top: 25%; right: 0; background: #3b82f6; }
.particle.p3 { bottom: 20%; right: 5%; background: #f59e0b; }
.particle.p4 { bottom: 0; left: 50%; background: #10b981; }
.particle.p5 { bottom: 20%; left: 5%; background: #6366f1; }
.particle.p6 { top: 25%; left: 0; background: #06b6d4; }

.success-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.74rem;
    font-weight: 750;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 3px 12px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.success-title {
    font-size: 1.55rem;
    font-weight: 850;
    color: #0f172a;
    letter-spacing: -0.025em;
    margin: 0 0 8px;
    line-height: 1.2;
}

.success-desc {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.45;
    margin: 0;
}

.success-progress-wrap,
.modal-redirect-track {
    width: 100%;
    max-width: 280px;
    height: 6px;
    background: #f1f5f9;
    border-radius: 9999px;
    overflow: hidden;
    margin: 20px auto 8px;
    border: 1px solid #e2e8f0;
}

.success-progress-bar,
.modal-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #10b981 0%, #2563eb 100%);
    border-radius: 9999px;
    transition: width 1.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-redirect-hint,
.modal-redirect-hint {
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 4px;
}

/* Continue / Action Button - Ultra Luxury */
.btn-success-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 260px;
    height: 48px;
    padding: 0 24px;
    margin-top: 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 750;
    letter-spacing: 0.01em;
    border: none;
    border-radius: 14px;
    box-shadow: 0 10px 24px -4px rgba(16, 185, 129, 0.42), 0 4px 10px rgba(5, 150, 105, 0.2);
    cursor: pointer;
    outline: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    overflow: hidden;
}

.btn-success-action::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.btn-success-action:hover::before {
    left: 150%;
}

.btn-success-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -4px rgba(16, 185, 129, 0.52), 0 6px 14px rgba(5, 150, 105, 0.3);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff !important;
}

.btn-success-action:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px -2px rgba(16, 185, 129, 0.4);
}

.btn-success-action .btn-arrow {
    font-size: 0.88rem;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-success-action:hover .btn-arrow {
    transform: translateX(4px);
}

@keyframes authFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes authCardPop {
    from {
        transform: scale(0.92) translateY(14px);
    }
    to {
        transform: scale(1) translateY(0);
    }
}

@keyframes circleDraw {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes checkDraw {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes particleBurst {
    0% {
        transform: scale(0) translate(0, 0);
        opacity: 1;
    }
    100% {
        transform: scale(1.6) translate(var(--tx, 15px), var(--ty, -15px));
        opacity: 0;
    }
}
