/* ==========================================================================
   HANEKO SHORTS - PIXEL-PERFECT AUTHENTICATION (SIGN UP & SIGN IN)
   Exact Reproduction of Reference Design with Enhanced Modern Aesthetics
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Canvas Colors matching reference */
    --auth-canvas-bg: #a4c2fb;
    --auth-card-bg: #ffffff;
    --auth-text-dark: #0f172a;
    --auth-text-body: #64748b;
    --auth-text-muted: #94a3b8;
    
    /* Brand Buttons & Primary Indigo */
    --auth-btn-primary: #4361ee;
    --auth-btn-gradient: linear-gradient(135deg, #4361ee 0%, #3b82f6 100%);
    --auth-btn-shadow: 0 10px 22px rgba(67, 97, 238, 0.38);
    
    /* Functional */
    --auth-success: #10b981;
    --auth-danger: #ef4444;
    --auth-border: #e2e8f0;

    /* Fonts */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html, body {
    min-height: 100%;
    width: 100%;
}

body.auth-page-body {
    background-color: var(--auth-canvas-bg);
    color: var(--auth-text-body);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow-x: hidden;
}

/* ==========================================================================
   MAIN AUTH DUAL-PANEL CARD (User Reference Layout)
   ========================================================================== */
.auth-main-card {
    position: relative;
    z-index: 10;
    width: min(94vw, 1040px);
    min-height: 600px;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(35, 60, 150, 0.12);
    display: flex;
    overflow: hidden;
    animation: cardEntrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==========================================================================
   LEFT PANEL - FORM CONTENT
   ========================================================================== */
.auth-form-panel {
    width: 55%;
    padding: 36px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

/* Top Navigation Bar */
.auth-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.auth-btn-back {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--auth-text-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.auth-btn-back:hover {
    transform: translateX(-3px);
    border-color: #cbd5e1;
    background: #f8fafc;
}

.auth-top-switch {
    font-size: 13.5px;
    color: var(--auth-text-muted);
    font-weight: 500;
}

.auth-top-switch a {
    color: var(--auth-btn-primary);
    text-decoration: none;
    font-weight: 700;
    margin-left: 4px;
    transition: opacity 0.2s ease;
}

.auth-top-switch a:hover {
    text-decoration: underline;
}

/* Headings */
.auth-heading-wrap {
    margin-bottom: 28px;
    position: relative;
}

.auth-title-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.auth-title {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 800;
    color: var(--auth-text-dark);
    letter-spacing: -0.6px;
    line-height: 1.1;
}

.auth-curved-arrow {
    width: 30px;
    height: 30px;
    margin-left: 4px;
    transform: translateY(-8px);
}

.auth-subtitle {
    font-size: 13.5px;
    color: var(--auth-text-muted);
    margin-top: 6px;
    font-weight: 500;
}

/* Alert Notification */
.auth-alert {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-alert-danger {
    background: #fef2f2;
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #b91c1c;
}

.auth-alert-success {
    background: #ecfdf5;
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #047857;
}

/* Input Fields (Clean Underline Style) */
.auth-form-group {
    position: relative;
    margin-bottom: 22px;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 1.5px solid #e2e8f0;
    padding-bottom: 9px;
    padding-top: 4px;
    transition: border-color 0.25s ease;
}

.auth-input-wrapper:focus-within {
    border-bottom-color: var(--auth-btn-primary);
}

.auth-field-icon {
    width: 19px;
    height: 19px;
    color: #94a3b8;
    margin-right: 14px;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.auth-input-wrapper:focus-within .auth-field-icon {
    color: var(--auth-btn-primary);
}

.auth-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--auth-text-dark);
    padding: 2px 0;
}

.auth-input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

/* Action Icons (Password Eye & Green Validation Checkmark) */
.auth-action-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.auth-action-icon:hover {
    color: var(--auth-text-dark);
}

.auth-check-icon {
    color: var(--auth-success);
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.auth-check-icon.visible {
    opacity: 1;
    transform: scale(1);
}

/* Password Requirements Checklist (Exact match to screenshot) */
.password-req-box {
    margin: -10px 0 20px 0;
    padding-left: 33px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.password-req-item {
    font-size: 11.5px;
    font-weight: 600;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.password-req-item .dot {
    font-size: 13px;
    line-height: 1;
}

.password-req-item.valid {
    color: var(--auth-success);
}

.password-req-item.valid .dot {
    color: var(--auth-success);
}

/* Options Row (Sign In Mode) */
.auth-options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: -6px 0 22px 0;
    font-size: 12.5px;
}

.auth-remember-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    color: var(--auth-text-body);
    user-select: none;
}

.auth-remember-label input[type="checkbox"] {
    accent-color: var(--auth-btn-primary);
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.auth-forgot-link {
    color: var(--auth-btn-primary);
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease;
}

.auth-forgot-link:hover {
    text-decoration: underline;
    color: #3b3db8;
}

/* Primary Action Button (Sign Up ➔ & Sign In ➔) */
.auth-submit-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.auth-btn-primary {
    background: var(--auth-btn-gradient);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 13px 34px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--auth-btn-shadow);
    text-decoration: none;
}

.auth-btn-primary .arrow {
    transition: transform 0.2s ease;
}

.auth-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(67, 97, 238, 0.45);
}

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

/* Social Login Options */
.auth-social-row {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-left: 6px;
}

.auth-social-text {
    font-size: 13px;
    color: var(--auth-text-muted);
    font-weight: 500;
}

.auth-btn-social {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.auth-btn-social:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.08);
}

/* Bottom Centered Copyright Bar */
.auth-bottom-bar {
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.auth-copyright-center {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.3px;
}

/* Inline Coming Soon Alert for Social Buttons */
.auth-social-alert {
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 9px 16px;
    background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
    border: 1.5px solid #bae6fd;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #0369a1;
    animation: alertFadeSlide 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 4px 14px rgba(3, 105, 161, 0.08);
}

.auth-social-alert.show {
    display: flex;
}

.social-alert-sparkle {
    font-size: 15px;
    animation: pulseSparkle 1.5s infinite;
}

@keyframes pulseSparkle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes alertFadeSlide {
    0% { opacity: 0; transform: translateY(-8px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Floating Interactive Toast Notification */
.auth-toast {
    position: fixed;
    top: 26px;
    left: 50%;
    transform: translateX(-50%) translateY(-26px);
    background: #0f172a;
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 999px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.28), 0 2px 8px rgba(0, 0, 0, 0.12);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    max-width: 90vw;
    text-align: center;
}

.auth-toast.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.auth-toast .toast-sparkle {
    font-size: 15px;
    animation: pulseSparkle 1.5s infinite;
}

.auth-toast .toast-badge {
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   RIGHT PANEL - EXACT USER SVG GRAPHICS & DYNAMIC ONLINE CARD
   ========================================================================== */
.auth-art-panel {
    width: 45%;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
}

/* জটিল নীল ব্যাকগ্রাউন্ড (SVG) */
.auth-art-panel svg.bg-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* কার্ড ১: Online Active Creators Card */
.card-online {
    position: absolute;
    top: 65px;
    left: 35px;
    width: 152px;
    min-height: 155px;
    background: #ffffff;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
    z-index: 6;
    animation: floatOnlineCard 5.5s ease-in-out infinite alternate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@keyframes floatOnlineCard {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-8px); }
}

.online-header {
    display: flex;
    align-items: center;
    gap: 7px;
}

.online-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
    animation: livePulseDot 1.8s infinite;
}

@keyframes livePulseDot {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.card-online h4 {
    font-size: 12px;
    color: #1e293b;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.2px;
}

.online-counter-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 4px 0;
}

.online-counter-number {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    font-family: var(--font-heading, inherit);
    line-height: 1.1;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
}

.online-counter-tag {
    font-size: 9.5px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.online-trend-bar {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.trend-fill {
    width: 78%;
    height: 100%;
    background: linear-gradient(90deg, #10b981, #06b6d4);
    border-radius: 999px;
    animation: trendShift 3s ease-in-out infinite alternate;
}

@keyframes trendShift {
    0% { width: 65%; }
    100% { width: 88%; }
}

.online-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: #ecfdf5;
    color: #059669;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
}

/* ==========================================================================
   WANDERING FLOATING SOCIAL MEDIA ICONS (FB, TikTok, Instagram, YouTube, TG)
   Drifting back and forth continuously without getting stuck in one place
   ========================================================================== */
.social-float-bubble {
    position: absolute;
    width: 42px;
    height: 42px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    z-index: 5;
    cursor: default;
    transition: transform 0.3s ease;
}

.social-float-bubble:hover {
    transform: scale(1.18) !important;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

/* Facebook Bubble */
.social-float-fb {
    top: 85px;
    right: 35px;
    color: #1877F2;
    font-size: 19px;
    animation: driftFB 7.5s ease-in-out infinite alternate;
}
@keyframes driftFB {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-22px, 20px) rotate(-8deg); }
    100% { transform: translate(-10px, 38px) rotate(6deg); }
}

/* TikTok Bubble */
.social-float-tt {
    top: 195px;
    right: 45px;
    color: #010101;
    font-size: 19px;
    animation: driftTT 8.5s ease-in-out infinite alternate;
}
@keyframes driftTT {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(24px, -18px) rotate(10deg); }
    100% { transform: translate(-16px, -30px) rotate(-6deg); }
}

/* Instagram Bubble */
.social-float-ig {
    top: 140px;
    right: 120px;
    color: #E1306C;
    font-size: 19px;
    animation: driftIG 9s ease-in-out infinite alternate;
}
@keyframes driftIG {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20px, 26px) rotate(12deg); }
    100% { transform: translate(-22px, 12px) rotate(-10deg); }
}

/* YouTube Bubble */
.social-float-yt {
    top: 275px;
    right: 32px;
    color: #FF0000;
    font-size: 18px;
    animation: driftYT 8s ease-in-out infinite alternate;
}
@keyframes driftYT {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-28px, -14px) rotate(-12deg); }
    100% { transform: translate(-16px, 18px) rotate(8deg); }
}

/* Telegram / Community Bubble */
.social-float-tg {
    top: 245px;
    right: 130px;
    color: #0088cc;
    font-size: 18px;
    animation: driftTG 10s ease-in-out infinite alternate;
}
@keyframes driftTG {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-18px, 24px) rotate(-8deg); }
    100% { transform: translate(16px, -18px) rotate(10deg); }
}

/* কার্ড ২: Safe Data */
.card-safe {
    position: absolute;
    bottom: 70px;
    left: 30px;
    width: 210px;
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 5;
    animation: floatSafeCard 6s ease-in-out infinite alternate;
}

@keyframes floatSafeCard {
    0% { transform: translateY(0px); }
    100% { transform: translateY(8px); }
}

.safe-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.safe-line {
    width: 30px;
    height: 3px;
    background: #5e5ce6;
    border-radius: 2px;
}

.safe-top i {
    color: #ff8c00;
    font-size: 16px;
}

.card-safe h5 {
    font-size: 10px;
    color: #222;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-safe p {
    font-size: 8px;
    color: #999;
    line-height: 1.5;
}

.dots {
    display: flex;
    gap: 4px;
    margin-top: 10px;
}

.dots span {
    width: 4px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 50%;
}

.dots span:first-child {
    background: #5e5ce6;
}

/* ==========================================================================
   STAGGERED ENTRANCE MICRO-ANIMATIONS
   ========================================================================== */
.anim-fade-up {
    opacity: 0;
    transform: translateY(16px);
    animation: itemFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes itemFadeUp {
    0% {
        opacity: 0;
        transform: translateY(16px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }
.delay-5 { animation-delay: 0.40s; }
.delay-6 { animation-delay: 0.48s; }
.delay-7 { animation-delay: 0.56s; }
.delay-8 { animation-delay: 0.64s; }

/* Interactive Toast Notice */
.auth-toast-modal {
    position: fixed;
    top: 24px;
    right: 24px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    padding: 14px 20px;
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-16px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-toast-modal.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 960px) {
    .auth-main-card {
        flex-direction: column;
        max-width: 520px;
        min-height: auto;
        border-radius: 28px;
    }

    .auth-form-panel {
        width: 100%;
        padding: 36px 28px;
    }

    .auth-art-panel {
        display: none;
    }

    .auth-title {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    body.auth-page-body {
        padding: 16px 12px;
    }

    .auth-form-panel {
        padding: 28px 20px;
    }

    .auth-submit-row {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-btn-primary {
        justify-content: center;
        width: 100%;
    }

    .auth-social-row {
        justify-content: center;
        margin-left: 0;
        margin-top: 10px;
    }
}
