/* ===== LoreArena Auth — Custom Styles ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0a0a1a;
}

::-webkit-scrollbar-thumb {
    background: #3a3a6a;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a855f7;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.glow-purple {
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.6), 0 0 30px rgba(168, 85, 247, 0.3);
}

.glow-cyan {
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.6), 0 0 30px rgba(34, 211, 238, 0.3);
}

.box-glow-purple {
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.15),
        0 0 45px rgba(168, 85, 247, 0.05),
        inset 0 0 15px rgba(168, 85, 247, 0.03);
}

.box-glow-cyan {
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.15),
        0 0 45px rgba(34, 211, 238, 0.05),
        inset 0 0 15px rgba(34, 211, 238, 0.03);
}

.input-glow:focus {
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.4),
        0 0 20px rgba(168, 85, 247, 0.1);
}

.gradient-border {
    position: relative;
    border: 1px solid transparent;
    background-clip: padding-box;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, #a855f7, #22d3ee, #ec4899, #a855f7);
    background-size: 300% 300%;
    animation: gradient-shift 6s ease infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.btn-neon {
    background: linear-gradient(135deg, #7c3aed, #a855f7, #6366f1);
    background-size: 200% 200%;
    transition: all 0.3s ease;
}

.btn-neon:hover:not(:disabled) {
    background-position: 100% 50%;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.btn-neon:active:not(:disabled) {
    transform: translateY(0);
}

.btn-neon:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

.checkbox-neon {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid #3a3a6a;
    border-radius: 4px;
    background: #14142e;
    cursor: pointer;
    position: relative;
    transition: all 0.25s ease;
}

.checkbox-neon:checked {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-color: #a855f7;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

.checkbox-neon:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: 700;
}

.checkbox-neon:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.4);
}

.particle {
    position: fixed;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
}

.tab-slider {
    transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1),
        width 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

.form-panel {
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.form-panel-enter {
    opacity: 0;
    transform: translateX(20px);
}

.form-panel-active {
    opacity: 1;
    transform: translateX(0);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.strength-bar {
    transition: width 0.4s ease, background-color 0.4s ease;
}

.toast {
    animation: toast-in 0.4s ease-out, toast-out 0.4s ease-in 2.6s forwards;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toast-out {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
}

@media (max-width: 480px) {
    .auth-card {
        margin: 12px;
    }
}