/* ==========================================================================
   OAC Registration Portal Premium Dark-Glassmorphism Styles
   Design Aesthetic: Sleek Dark Mode, Vibrant Auroras, High-Gloss Frosted Glass
   ========================================================================== */

/* Global Reset & Base Variables */
:root {
    --bg-dark: #07090e;
    --card-bg: rgba(13, 17, 28, 0.45);
    --border-glow: rgba(255, 255, 255, 0.07);
    --border-active: rgba(59, 130, 246, 0.5);
    
    /* Harmonious HSL Tailored Colors */
    --color-primary: #3b82f6;      /* Aurora Blue */
    --color-primary-glow: rgba(59, 130, 246, 0.35);
    --color-success: #10b981;      /* Emerald Green */
    --color-warning: #f59e0b;      /* Amber Orange */
    --color-error: #ef4444;        /* Crimson Red */
    --text-main: #f3f4f6;          /* Soft White */
    --text-muted: #9ca3af;         /* Charcoal Gray */

    /* Exact Character Monster Colors (Macaron-toned highlights) */
    --c-purple: #6B21FF;
    --c-yellow: #F4D03F;
    --c-black: #1A1A1A;
    --c-orange: #FF7443;
}

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* ==========================================================================
   Premium Background Layers & Special Effects (Jindun Aesthetics)
   ========================================================================== */

/* 1. Shifting Grid Layer */
.auth-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: url(/static/img/main_bg.995ae41.jpg) 50% / cover no-repeat;
}

.auth-bg:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(2, 12, 28, 0.94), rgba(5, 20, 45, 0.88) 45%, rgba(7, 22, 52, 0.84));
}

.auth-bg:after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(3, 180, 245, 0.045) 1px, transparent 0),
        linear-gradient(90deg, rgba(3, 180, 245, 0.045) 1px, transparent 0);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 0, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 0, transparent 75%);
    animation: grid-shift-x 30s linear infinite;
    pointer-events: none;
    z-index: 0;
}

/* 2. Fluid Aurora Glow */
.auth-aurora {
    position: fixed;
    inset: -10%;
    z-index: 1;
    pointer-events: none;
    background: 
        radial-gradient(ellipse 70% 50% at 18% 28%, rgba(3, 180, 245, 0.3) 0, transparent 55%),
        radial-gradient(ellipse 60% 45% at 82% 72%, rgba(122, 92, 255, 0.22) 0, transparent 55%),
        radial-gradient(ellipse 50% 35% at 50% 95%, rgba(46, 231, 255, 0.16) 0, transparent 50%);
    filter: blur(60px);
    opacity: 0.95;
    animation: aurora-shift-y 22s ease-in-out infinite alternate;
}

/* 3. Floating Glassmorphism Active Orbs */
.auth-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(85px);
    opacity: 0.55;
    pointer-events: none;
    z-index: 1;
}

.auth-orb--a {
    width: min(58vw, 460px);
    height: min(58vw, 460px);
    top: -10%;
    right: -6%;
    background: radial-gradient(circle, rgba(3, 180, 245, 0.65) 0, transparent 70%);
    animation: orb-move-A 14s ease-in-out infinite, orb-glow-z 7s ease-in-out infinite;
}

.auth-orb--b {
    width: min(48vw, 380px);
    height: min(48vw, 380px);
    bottom: -12%;
    left: -8%;
    background: radial-gradient(circle, rgba(122, 92, 255, 0.45) 0, transparent 70%);
    animation: orb-move-A 16s ease-in-out infinite reverse, orb-glow-z 8s ease-in-out infinite 0.8s;
}

.auth-orb--c {
    width: min(36vw, 320px);
    height: min(36vw, 320px);
    top: 38%;
    left: 38%;
    background: radial-gradient(circle, rgba(46, 231, 255, 0.2) 0, transparent 70%);
    animation: orb-move-A 18s ease-in-out infinite 1s;
}

/* 4. Shield Grid SVG Mesh */
.auth-mesh {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    width: 100%;
    height: 100%;
    opacity: 0.55;
}

.auth-mesh .mesh-node {
    fill: rgba(46, 231, 255, 0.42);
}

.auth-mesh .mesh-node--sm {
    fill: rgba(46, 231, 255, 0.22);
}

/* 5. Scanning Laser Line & Quantum Sparks */
.auth-fx {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.auth-fx__scan {
    position: absolute;
    left: 0;
    right: 0;
    height: 140px;
    top: -20%;
    background: linear-gradient(180deg, transparent, rgba(3, 180, 245, 0.04) 40%, rgba(46, 231, 255, 0.14) 50%, rgba(3, 180, 245, 0.04) 60%, transparent);
    animation: laser-scan-B 8s ease-in-out infinite;
    opacity: 0.7;
}

.auth-fx__spark {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: rgba(46, 231, 255, 0.55);
    box-shadow: 0 0 4px rgba(3, 180, 245, 0.35);
    animation: spark-jiggle-C 6s ease-in-out infinite;
}

/* Particle Spark Locations and Delay Offsets */
.auth-fx__spark:nth-child(2)  { left: 66%; top: 51%; animation-delay: 0.35s; animation-duration: 6s;   opacity: .28; }
.auth-fx__spark:nth-child(3)  { left: 37%; top: 12%; animation-delay: 0.70s; animation-duration: 6.5s; opacity: .38; }
.auth-fx__spark:nth-child(4)  { left: 08%; top: 53%; animation-delay: 1.05s; animation-duration: 7s;   opacity: .18; }
.auth-fx__spark:nth-child(5)  { left: 69%; top: 14%; animation-delay: 1.40s; animation-duration: 5.5s; opacity: .28; }
.auth-fx__spark:nth-child(6)  { left: 40%; top: 55%; animation-delay: 1.75s; animation-duration: 6s;   opacity: .38; }
.auth-fx__spark:nth-child(7)  { left: 11%; top: 16%; animation-delay: 2.10s; animation-duration: 6.5s; opacity: .18; }
.auth-fx__spark:nth-child(8)  { left: 72%; top: 57%; animation-delay: 2.45s; animation-duration: 7s;   opacity: .28; }
.auth-fx__spark:nth-child(9)  { left: 43%; top: 18%; animation-delay: 2.80s; animation-duration: 5.5s; opacity: .38; }
.auth-fx__spark:nth-child(10) { left: 14%; top: 59%; animation-delay: 3.15s; animation-duration: 6s;   opacity: .18; }
.auth-fx__spark:nth-child(11) { left: 75%; top: 20%; animation-delay: 3.50s; animation-duration: 6.5s; opacity: .28; }
.auth-fx__spark:nth-child(12) { left: 46%; top: 61%; animation-delay: 3.85s; animation-duration: 7s;   opacity: .38; }
.auth-fx__spark:nth-child(13) { left: 17%; top: 22%; animation-delay: 4.20s; animation-duration: 5.5s; opacity: .18; }

/* ==========================================================================
   Visual Stack Background Animations (Keyframes)
   ========================================================================== */
@keyframes grid-shift-x {
    0%   { transform: translate(0); }
    100% { transform: translate(56px, 56px); }
}
@keyframes aurora-shift-y {
    0%   { transform: translate(-2%, -1%) scale(1) rotate(0deg); }
    100% { transform: translate(3%, 2%) scale(1.06) rotate(2deg); }
}
@keyframes orb-glow-z {
    0%, 100% { opacity: .4; filter: blur(85px); }
    50%      { opacity: .7; filter: blur(70px); }
}
@keyframes orb-move-A {
    0%, 100% { transform: translate(0) scale(1); }
    50%      { transform: translate(-22px, 16px) scale(1.05); }
}
@keyframes laser-scan-B {
    0%, 8%   { transform: translateY(0); opacity: 0; }
    12%, 88% { opacity: .7; }
    100%     { transform: translateY(120vh); opacity: 0; }
}
@keyframes spark-jiggle-C {
    0%, 100% { opacity: .2;  transform: translate(0); }
    50%      { opacity: .55; transform: translate(1px, -2px); }
}

/* ==========================================================================
   Unified Responsive Double-Column Shell Styles
   ========================================================================== */
.auth-container {
    position: relative;
    z-index: 10;
    display: flex;
    width: 100%;
    max-width: 1000px;
    min-height: 100vh;
    align-items: center;
    padding: 40px 30px;
    margin: 0 auto;
    gap: 24px;
    overflow: visible;
}

.left-panel {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100%;
    min-height: 400px;
    overflow: visible;
}

.right-panel {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.svg-container {
    width: 100%;
    height: auto;
    max-width: 480px;
    transform: translate3d(-50px, -30px, 0); /* Lift up by 30px, shift left by 50px */
    overflow: visible !important;
}

/* ==========================================================================
   3D Tilt Container Wrapper (Original movement & border glow)
   ========================================================================== */
.auth-card-shell {
    position: relative;
    perspective: 1000px;
    transform-style: preserve-3d;
    border-radius: 22px;
    padding: 1px;
    background: linear-gradient(125deg, rgba(28, 48, 72, 0.55), rgba(3, 180, 245, 0.32) 24%, rgba(20, 42, 64, 0.5) 48%, rgba(122, 92, 255, 0.28) 72%, rgba(3, 180, 245, 0.18));
    background-size: 240% 240%;
    animation: I 12s ease infinite, J 10s ease-in-out infinite;
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 42px rgba(3, 180, 245, 0.08);
    transition: box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
    width: 100%;
}

.auth-card-shell:hover {
    box-shadow: 
        0 28px 72px rgba(0,0,0,0.45), 
        0 0 0 1px rgba(255,255,255,0.12), 
        inset 0 1px 0 rgba(255,255,255,0.12), 
        0 0 56px rgba(3, 180, 245, 0.22);
}

/* ==========================================================================
   Sleek Glassmorphism Card Container (Double high-gloss gradient & sweeps)
   ========================================================================== */
.register-container {
    width: 100%;
    max-width: 460px;
    padding: 0px;
    z-index: 10;
}

.register-card {
    position: relative;
    border-radius: 21px;
    padding: 24px 30px 20px;
    background: linear-gradient(165deg, rgba(55, 85, 120, .58), rgba(32, 58, 90, .73) 38%, rgba(24, 46, 72, .76)), linear-gradient(180deg, hsla(0, 0%, 100%, .22), hsla(0, 0%, 100%, 0) 42%);
    border: none;
    box-shadow: inset 0 1px 0 hsla(0, 0%, 100%, .18), inset 0 0 0 1px rgba(3, 180, 245, .15);
    backdrop-filter: blur(25px) saturate(1.2);
    -webkit-backdrop-filter: blur(25px) saturate(1.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Neon Top Breathing Cutline */
.register-card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(3, 180, 245, 0.35), transparent);
    animation: card-top-glow 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 5;
}

/* Diagonal Sweeping Light Reflection */
.register-card:after {
    content: "";
    position: absolute;
    top: -50%;
    left: -40%;
    width: 45%;
    height: 200%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.04) 45%, transparent 70%);
    animation: card-sweep-light 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

/* Brand logo and headers */
.brand-area {
    text-align: center;
    margin-bottom: 12px;
    position: relative;
    z-index: 5;
}

.logo-shield {
    font-size: 38px;
    margin-bottom: 12px;
    display: inline-block;
    filter: drop-shadow(0 0 12px var(--color-primary-glow));
    animation: pulse 4s infinite ease-in-out;
}

.brand-area h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #ffffff, #2ee7ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
}

.subtitle {
    font-size: 13px;
    color: rgba(220, 236, 248, 0.7);
    font-weight: 300;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 12px var(--color-primary-glow)); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 20px var(--color-primary)); }
}

/* ==========================================================================
   Interactive Input Forms (Float translation and neon focus)
   ========================================================================== */
.input-group {
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

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

.input-icon {
    position: absolute;
    left: 16px;
    font-size: 16px;
    opacity: 0.6;
    color: rgba(59, 130, 246, 0.85);
    pointer-events: none;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.input-wrapper input {
    width: 100%;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.28);
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.02));
    background-color: rgba(14, 36, 58, 0.42);
    color: #f5faff;
    font-size: 13.5px;
    font-family: inherit;
    padding: 10px 16px 10px 42px;
    transition: border-color .28s cubic-bezier(.22,1,.36,1), box-shadow .28s ease, background .28s ease, transform .22s ease;
    outline: none;
}

.input-wrapper input:hover:not(:focus) {
    border-color: rgba(59, 130, 246, 0.5);
    background-color: rgba(22, 48, 76, 0.5);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.14);
}

.input-wrapper input:focus {
    border-color: rgba(59, 130, 246, 0.82);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22), 0 8px 24px rgba(59, 130, 246, 0.18);
    background-color: rgba(18, 44, 72, 0.6);
    transform: translateY(-1px);
}

.input-wrapper input:focus + .input-icon,
.input-wrapper:hover .input-icon {
    color: rgba(46, 231, 255, 0.95);
    opacity: 1;
}

.toggle-password {
    position: absolute;
    right: 16px;
    cursor: pointer;
    font-size: 15px;
    opacity: 0.6;
    user-select: none;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.toggle-password:hover {
    opacity: 1;
}

.error-text {
    font-size: 12px;
    color: var(--color-error);
    margin-top: 4px;
    font-weight: 400;
    opacity: 0;
    transition: opacity 0.25s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* Red Error Border for input wrappers on validation failure */
.input-wrapper.error-border input {
    border-color: rgba(239, 68, 68, 0.72) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.16), 0 6px 20px rgba(239, 68, 68, 0.12) !important;
    background-color: rgba(45, 16, 24, 0.38) !important;
}

/* High-fidelity 3D Shaking Animation for block-level interactive indicators */
.shake-error {
    animation: inputShake 0.4s cubic-bezier(.36,.07,.19,.97) both;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

@keyframes inputShake {
    10%, 90% { transform: translate3d(-2px, 0, 0); }
    20%, 80% { transform: translate3d(4px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-5px, 0, 0); }
    40%, 60% { transform: translate3d(5px, 0, 0); }
}

/* ==========================================================================
   Dynamic Password Strength Meter & Bar HSL Colors
   ========================================================================== */
.strength-meter {
    height: 4px;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    margin-top: 5px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: width 0.4s ease, background-color 0.4s ease;
}

.strength-weak {
    background-color: var(--color-error);
    box-shadow: 0 0 8px var(--color-error);
}

.strength-medium {
    background-color: var(--color-warning);
    box-shadow: 0 0 8px var(--color-warning);
}

.strength-strong {
    background-color: var(--color-success);
    box-shadow: 0 0 8px var(--color-success);
}

.strength-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    text-align: right;
}

.strength-label span {
    font-weight: 600;
}

.color-weak { color: var(--color-error); }
.color-medium { color: var(--color-warning); }
.color-strong { color: var(--color-success); }

/* Captcha container */
.captcha-group {
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 5;
}

/* ==========================================================================
   Glow Submit Button (With diagonal skew sweep light reflections)
   ========================================================================== */
.submit-btn {
    width: 100%;
    height: 46px;
    background: rgba(255, 255, 255, 0.03);
    border: none; /* Eradicate borders completely on both states to prevent subpixel outline artifacts and layout shifting */
    border-radius: 12px;
    padding: 12px;
    color: var(--text-muted);
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: not-allowed;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 5;
    outline: none; /* Suppress default browser focus outline ring */
}

.submit-btn.btn-active {
    background: linear-gradient(90deg, rgb(3, 180, 245), rgb(139, 112, 255)); /* 90deg horizontal gradient to eliminate vertical curve color mismatch on high-aspect buttons */
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.12em;
    box-shadow: rgba(3, 180, 245, 0.4) 0px 8px 28px, rgba(122, 92, 255, 0.3) 0px 4px 16px; /* Restore stunning dual-glow shadows */
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s, filter 0.25s;
    outline: none;
}

.submit-btn.btn-active:hover {
    background: linear-gradient(90deg, rgb(38, 196, 255), rgb(150, 125, 255)); /* Brightened horizontal hover gradient */
    box-shadow: rgba(3, 180, 245, 0.55) 0px 14px 42px, rgba(122, 92, 255, 0.45) 0px 6px 22px;
    transform: translateY(-2px);
    filter: brightness(1.05);
}

/* Sweeping linear light layer inside button */
.submit-btn.btn-active:after {
    content: "";
    position: absolute;
    inset: 0;
    left: -100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
    transform: skewX(-18deg);
    animation: btn-sweep-light 3.2s ease-in-out infinite;
    pointer-events: none;
}

.submit-btn.btn-active:active {
    transform: translateY(0);
    box-shadow: rgba(3, 180, 245, 0.3) 0px 6px 20px, rgba(122, 92, 255, 0.2) 0px 3px 10px;
}

/* Spinner rotation animation */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Smooth feedback overlays (slide-up visual transition)
   ========================================================================== */
/* ==========================================================================
   Smooth premium feedback overlays (Frosted Scale Zoom & Neon Glows)
   ========================================================================== */
.feedback-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    border-radius: 24px;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.feedback-overlay.overlay-active {
    opacity: 1;
    pointer-events: auto;
}

.feedback-content {
    width: 100%;
    max-width: 360px;
    text-align: center;
    background: rgba(13, 20, 38, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 36px 28px 30px;
    backdrop-filter: blur(25px) saturate(1.4);
    -webkit-backdrop-filter: blur(25px) saturate(1.4);
    box-shadow: 
        0 24px 70px rgba(0, 0, 0, 0.65), 
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: scale(0.85) translateY(40px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.34, 1.6, 0.64, 1), opacity 0.4s ease-out;
}

.feedback-overlay.overlay-active .feedback-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Neon Backglow depending on status - translucent and status-aware fading out to absolute transparency */
.feedback-overlay.success-state {
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.18) 0%, rgba(16, 185, 129, 0.0) 70%);
}
.feedback-overlay.error-state {
    background: radial-gradient(circle at center, rgba(239, 68, 68, 0.18) 0%, rgba(239, 68, 68, 0.0) 70%);
}

.feedback-overlay.success-state .feedback-content {
    border-color: rgba(16, 185, 129, 0.35);
    box-shadow: 
        0 24px 70px rgba(0, 0, 0, 0.65), 
        0 0 40px rgba(16, 185, 129, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.feedback-overlay.error-state .feedback-content {
    border-color: rgba(239, 68, 68, 0.35);
    box-shadow: 
        0 24px 70px rgba(0, 0, 0, 0.65), 
        0 0 40px rgba(239, 68, 68, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Stunning Interactive Feedback Icons */
.feedback-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    margin: 0 auto 20px auto;
    font-weight: 800;
    position: relative;
}

.icon-success {
    background: rgba(16, 185, 129, 0.12);
    border: 2px solid var(--color-success);
    color: var(--color-success);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.22);
}

.feedback-overlay.overlay-active.success-state .feedback-icon {
    animation: iconSuccessPop 0.65s cubic-bezier(0.34, 1.8, 0.64, 1) both;
}

.icon-error {
    background: rgba(239, 68, 68, 0.12);
    border: 2px solid var(--color-error);
    color: var(--color-error);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.22);
}

.feedback-overlay.overlay-active.error-state .feedback-icon {
    animation: iconErrorShake 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Interactive Animations */
@keyframes iconSuccessPop {
    0% { transform: scale(0.5) rotate(-45deg); opacity: 0; }
    70% { transform: scale(1.15) rotate(10deg); }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

@keyframes iconErrorShake {
    10%, 90% { transform: translate3d(-1px, 0, 0) scale(1); }
    20%, 80% { transform: translate3d(2px, 0, 0) scale(1.05); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0) scale(1.08); }
    40%, 60% { transform: translate3d(4px, 0, 0) scale(1.08); }
}

.feedback-content h2 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    background: #ffffff;
    -webkit-background-clip: text;
    background-clip: text;
}

.feedback-overlay.success-state h2 {
    background: linear-gradient(90deg, #ffffff, var(--color-success));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feedback-overlay.error-state h2 {
    background: linear-gradient(90deg, #ffffff, var(--color-error));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feedback-content p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 28px;
    padding: 0 8px;
}

/* Futuristic Close Button with Press Effect */
.close-feedback-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 11px 32px;
    border-radius: 12px;
    color: var(--text-main);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    outline: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.feedback-overlay.success-state .close-feedback-btn:hover {
    background: var(--color-success);
    color: #ffffff;
    border-color: var(--color-success);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.feedback-overlay.error-state .close-feedback-btn:hover {
    background: var(--color-error);
    color: #ffffff;
    border-color: var(--color-error);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    transform: translateY(-2px);
}

.close-feedback-btn:active {
    transform: translateY(0) scale(0.96);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Card footer details */
.card-footer {
    margin-top: 18px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
}

.card-footer p {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.6;
}

.copyright {
    margin-top: 8px;
    font-size: 10px !important;
    opacity: 0.5;
}

/* Card top breathing border glow */
@keyframes card-top-glow {
    0%, 100% { opacity: 0.55; }
    50%      { opacity: 1; }
}

/* Card diagonal sweeping light reflection */
@keyframes card-sweep-light {
    0%, 100% { transform: translate(-20%) rotate(12deg); opacity: 0; }
    35%      { opacity: 0.35; }
    55%      { transform: translate(220%) rotate(12deg); opacity: 0.2; }
}

/* Button sweeping light reflection */
@keyframes btn-sweep-light {
    0%, 40% { left: -100%; }
    55%, 100% { left: 160%; }
}


/* ==========================================================================
   SVG CHARACTER STYLES & INTERACTION STATES (High-fidelity Merge)
   ========================================================================== */

/* Character base parameters - locks bottom-center boundary */
.char {
    transform-box: fill-box;
    transform-origin: bottom center;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Body distortion - maps dynamically computed --mx and --my skew & squish variables */
#purple {
    transform: skewX(calc(var(--mx, 0) * -5deg)) scaleY(calc(1 + var(--my, 0) * -0.04));
}
#black {
    transform: skewX(calc(var(--mx, 0) * -4deg)) scaleY(calc(1 + var(--my, 0) * -0.03));
}
#orange {
    transform: skewX(calc(var(--mx, 0) * -4deg)) scaleY(calc(1 + var(--my, 0) * -0.03));
}
#yellow {
    transform: skewX(calc(var(--mx, 0) * 3deg)) scaleY(calc(1 + var(--my, 0) * -0.03));
}

/* Expression structures overlay handles */
.face {
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.face-hidden, .face-visible, .face-happy { 
    opacity: 0; 
    pointer-events: none; 
}
.face-default { 
    opacity: 1; 
}

/* Pupils eye movement displacement limits */
.eye-tracker {
    transform: translate(calc(var(--mx, 0) * 5px), calc(var(--my, 0) * 3px));
}

.pupil {
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   INTERACTIVE TRIGGER STATES (Driven via JS class tags on body)
   ========================================================================== */

/* 1. Account Focus - Characters lean strongly towards the right column input wrapper */
body.focus-email #purple { transform: skewX(-12deg) scaleY(1.04); }
body.focus-email #black  { transform: skewX(-8deg) scaleY(1.05); }
body.focus-email #yellow { transform: skewX(-6deg) scaleY(1.02); }
body.focus-email #orange { transform: skewX(-6deg) scaleY(1.03); }

/* 2. Password Hidden Focus - Shyness triggers: characters lean leftwards away from screen */
body.focus-password-hidden #purple { transform: skewX(12deg) scaleY(0.95); }
body.focus-password-hidden #black  { transform: skewX(8deg) scaleY(0.88); }
body.focus-password-hidden #yellow { transform: skewX(10deg) scaleY(0.95); }
body.focus-password-hidden #orange { transform: skewX(6deg) scaleY(0.92); }

/* Faces slight horizontal translation to emphasize avoid look */
body.focus-password-hidden .faces {
    transform: translateX(-8px);
    transition: transform 0.5s ease-in-out;
}

body.focus-password-hidden .face-default,
body.focus-password-hidden .face-visible { 
    opacity: 0; 
}
body.focus-password-hidden .face-hidden { 
    opacity: 1; 
}

/* 3. Password Visible Focus - Curious peeking: characters lean aggressively rightwards */
body.focus-password-visible #purple { transform: skewX(-18deg) scaleY(1.08); }
body.focus-password-visible #black  { transform: skewX(-14deg) scaleY(1.1); }
body.focus-password-visible #yellow { transform: skewX(-10deg) scaleY(1.06); }
body.focus-password-visible #orange { transform: skewX(-12deg) scaleY(1.07); }

/* Pupil enlargement and visual target locked to the password clear text area */
body.focus-password-visible .eye-tracker {
    transform: translate(10px, -2px) !important;
}

body.focus-password-visible .face-default,
body.focus-password-visible .face-hidden { 
    opacity: 0; 
}
body.focus-password-visible .face-visible { 
    opacity: 1; 
}

body.focus-password-visible .pupil { 
    transform: scale(1.5); 
}

/* ==========================================================================
   4. REGISTRATION FAIL STATE - Red-glow input tremors & synchronized character shivers
   ========================================================================== */
body.login-fail .char {
    animation: charShake 0.15s ease-in-out 4;
}
body.login-fail #purple { transform: scaleY(0.9); }
body.login-fail #black  { transform: scaleY(0.85); }
body.login-fail #yellow { transform: scaleY(0.9); }
body.login-fail #orange { transform: scaleY(0.88); }

body.login-fail .face-default,
body.login-fail .face-visible { 
    opacity: 0; 
}
body.login-fail .face-hidden { 
    opacity: 1; 
}

@keyframes charShake {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-6px); }
    75%      { transform: translateX(6px); }
}

/* ==========================================================================
   5. SUCCESS STATE TIMELINE - Plunge, pastel color splashes, sweeping white curtains
   ========================================================================== */

/* Phase 1: Happy facial triggers & elastic bottom contraction -> heavy gravity drop out */
body.login-success .face-default,
body.login-success .face-hidden,
body.login-success .face-visible { 
    opacity: 0; 
}
body.login-success .face-happy { 
    opacity: 1; 
}

body.login-success .char {
    animation: victoryJump 1.2s cubic-bezier(0.25, 1, 0.5, 1) both;
}
body.login-success #purple { animation-delay: 0.1s; }
body.login-success #black  { animation-delay: 0.2s; }
body.login-success #orange { animation-delay: 0.3s; }
body.login-success #yellow { animation-delay: 0.4s; }

@keyframes victoryJump {
    0%, 100% { transform: scaleY(1) translateY(0); }
    20%      { transform: scaleY(0.8) translateY(12px); } /* Squish down preparing for jump */
    52%      { transform: scaleY(1.15) translateY(-50px); } /* Leap upwards high */
    78%      { transform: scaleY(0.9) translateY(0); } /* Land and absorb shock */
}

/* ==========================================================================
   SVG CHARACTER INTRINSIC KEYFRAMES (Organic Breathing, blinking and entries)
   ========================================================================== */

/* GPU-Acceleration optimization markers */
.arc-anim, .drop-anim, .jelly-anim, .breathe {
    will-change: transform, opacity;
}

/* 1. Purple Entry: Smooth elastic growth from the bottom */
.arc-anim {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: bottom center;
    animation: growUp 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes growUp {
    0%   { opacity: 0; transform: scaleY(0) scaleX(1.2); }
    15%  { opacity: 1; transform: scaleY(0.05) scaleX(1.15); }
    100% { opacity: 1; transform: scaleY(1) scaleX(1); }
}

/* 2. Black Entry: Heavy drop down from top, shock dampening compression */
.drop-anim {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center center;
    animation: portalOpen 1.4s ease-in-out forwards;
}

@keyframes portalOpen {
    0% {
        opacity: 0;
        transform: translateY(-250px) scale(0);
    }
    8% {
        opacity: 1;
        transform: translateY(-230px) scale(0.5);
    }
    16% {
        transform: translateY(-200px) scale(1);
    }
    42% {
        transform: translateY(0) scaleY(1) scaleX(1);
    }
    50% {
        transform: translateY(0) scaleY(0.78) scaleX(1.16);
    }
    60% {
        transform: translateY(-12px) scaleY(1.08) scaleX(0.95);
    }
    70% {
        transform: translateY(0) scaleY(0.93) scaleX(1.05);
    }
    80% {
        transform: translateY(-3px) scaleY(1.03) scaleX(0.98);
    }
    90% {
        transform: translateY(0) scaleY(0.99) scaleX(1.01);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scaleY(1) scaleX(1);
    }
}

/* 3. Orange & Yellow Entry: Jelly blob rise up with sticky vertical spring vibrations */
.jelly-anim {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: bottom center;
    animation: jellyBlobUp 1.8s ease-in-out forwards;
}

@keyframes jellyBlobUp {
    0% {
        opacity: 0;
        transform: scaleY(0.02) scaleX(1.4);
    }
    15% {
        opacity: 1;
        transform: scaleY(0.08) scaleX(1.3);
    }
    40% {
        transform: scaleY(1.15) scaleX(0.9);
    }
    55% {
        transform: scaleY(0.88) scaleX(1.06);
    }
    70% {
        transform: scaleY(1.05) scaleX(0.98);
    }
    85% {
        transform: scaleY(0.97) scaleX(1.01);
    }
    100% {
        opacity: 1;
        transform: scaleY(1) scaleX(1);
    }
}

/* 4. Organic Idle Breathe - slow thoracic expansion simulator */
.breathe {
    transform-box: fill-box;
    transform-origin: bottom center;
    animation: breatheAnim 4s infinite ease-in-out;
}

@keyframes breatheAnim {
    0%, 100% { transform: scaleY(1); }
    50%      { transform: scaleY(1.02) translateY(-2px); }
}

/* 5. Synchronous Blink Simulator - quick eye scale-down lines */
.eye-blink {
    transform-box: fill-box;
    transform-origin: center;
    animation: blinkAnim 4.5s infinite;
}

@keyframes blinkAnim {
    0%, 96%, 100% { transform: scaleY(1); }
    98%           { transform: scaleY(0.1); }
}


/* ==========================================================================
   INTERACTIVE SINGING & CHORUS EFFECTS (Web Audio API CSS extensions)
   ========================================================================== */

/* Distinct jump layer - completely orthogonal to main character skew transformations */
.sing-bounce {
    transform-box: fill-box;
    transform-origin: bottom center;
    transition: transform 0.15s cubic-bezier(0.25, 1, 0.5, 1);
}

.sing-bounce.jump {
    animation: characterSingJump 0.55s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes characterSingJump {
    0%   { transform: translateY(0); }
    30%  { transform: translateY(-40px) scaleY(1.05); } /* Jump high, stretch body slightly */
    70%  { transform: translateY(6px) scaleY(0.94); }   /* Cushioned landing compression */
    100% { transform: translateY(0) scaleY(1); }
}

/* Singing O-mouth overlay transitions */
.face-singing {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s ease-in-out;
}

/* Override standard facial elements strictly on singing class */
.char.singing .face {
    opacity: 0 !important;
}
.char.singing .face-singing {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Float note floating particle emitter */
.note-particle {
    position: absolute;
    pointer-events: none;
    font-size: 26px;
    font-family: 'Outfit', sans-serif;
    font-weight: bold;
    user-select: none;
    z-index: 1000;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
    animation: floatNote 1.5s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes floatNote {
    0% {
        transform: translate3d(0, 0, 0) scale(0.4) rotate(0deg);
        opacity: 0;
    }
    15% {
        opacity: 1;
        transform: translate3d(var(--x-dir), -35px, 0) scale(1.2) rotate(var(--rot-dir));
    }
    100% {
        transform: translate3d(calc(var(--x-dir) * 2.2), -130px, 0) scale(0.7) rotate(calc(var(--rot-dir) * 2.5));
        opacity: 0;
    }
}


/* ==========================================================================
   UNIFIED RESPONSIVE COMPLIANCE
   ========================================================================== */
@media (max-width: 1024px) {
    .auth-container {
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        padding: 40px 20px;
    }
    .left-panel {
        display: none; /* Smoothly fade out character modules on tablets & mobile screens */
    }
    .right-panel {
        width: 100%;
        flex: none;
    }
    .register-container {
        max-width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .register-card {
        padding: 32px 20px;
    }
}

/* Original JINDUN flow and float keyframes */
@keyframes I {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

@keyframes J {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-3px); }
}
