﻿/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* Motorcycle riding across screen */
@keyframes rideAcross {
    0% {
        transform: translateX(-250px) translateY(0);
        opacity: 0;
    }

    5% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.8;
    }

    95% {
        opacity: 0.5;
    }

    100% {
        transform: translateX(calc(100vw + 250px)) translateY(10px);
        opacity: 0;
    }
}

@keyframes rideAcrossReverse {
    0% {
        transform: translateX(calc(100vw + 250px)) scaleX(-1) translateY(0);
        opacity: 0;
    }

    5% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.7;
    }

    95% {
        opacity: 0.4;
    }

    100% {
        transform: translateX(-250px) scaleX(-1) translateY(-10px);
        opacity: 0;
    }
}

/* Headlight beam sweep */
@keyframes sweepBeam {
    0% {
        transform: translateX(-100%) rotate(-5deg);
        opacity: 0;
    }

    10% {
        opacity: 0.15;
    }

    50% {
        opacity: 0.25;
    }

    90% {
        opacity: 0.1;
    }

    100% {
        transform: translateX(100vw) rotate(5deg);
        opacity: 0;
    }
}

/* Speed lines shooting across */
@keyframes speedLine {
    0% {
        transform: translateX(-100px) scaleX(0.5);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
        transform: translateX(0) scaleX(1);
    }

    100% {
        transform: translateX(100vw) scaleX(1.5);
        opacity: 0;
    }
}

/* Floating embers */
@keyframes floatEmber {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
        transform: translateY(80vh) translateX(10px) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translateY(40vh) translateX(-20px) scale(0.8);
    }

    100% {
        transform: translateY(-20vh) translateX(30px) scale(0.3);
        opacity: 0;
    }
}

/* Ember glow pulse */
@keyframes emberGlow {

    0%, 100% {
        box-shadow: 0 0 4px 2px rgba(255, 107, 0, 0.8);
    }

    50% {
        box-shadow: 0 0 8px 4px rgba(255, 60, 0, 1);
    }
}

/* Road lane markings moving */
@keyframes laneMove {
    0% {
        transform: translateX(-200%);
    }

    100% {
        transform: translateX(100vw);
    }
}

/* Flame flicker */
@keyframes flameFlicker {

    0%, 100% {
        opacity: 0.3;
        filter: blur(40px);
        transform: scale(1);
    }

    25% {
        opacity: 0.5;
        filter: blur(50px);
        transform: scale(1.1);
    }

    50% {
        opacity: 0.4;
        filter: blur(45px);
        transform: scale(1.05);
    }

    75% {
        opacity: 0.6;
        filter: blur(55px);
        transform: scale(1.15);
    }
}

/* Headlight beam attached to bike */
@keyframes beamPulse {

    0%, 100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.5;
    }
}

/* ============================================
   PAGE LAYOUT
   ============================================ */

.page-container {
    min-height: 100vh;
    background-color: #000;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.background-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 80%, rgba(234, 88, 12, 0.1) 0%, transparent 50%), radial-gradient(ellipse at 80% 20%, rgba(220, 38, 38, 0.08) 0%, transparent 50%), linear-gradient(to bottom, #000 0%, #0a0a0a 50%, #000 100%);
}

.content-wrapper {
    position: relative;
    z-index: 100;
    width: 100%;
    max-width: 28rem;
    padding: 0 1.5rem;
}

/* ============================================
   BIKE THEMED BACKGROUND ELEMENTS
   ============================================ */

/* Wheel rotation animation */
@keyframes wheelSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Gear rotation animation */
@keyframes gearRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.bike-theme-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

/* Motorcycle wheel silhouettes */
.wheel-silhouette {
    position: absolute;
    color: #fffbb2;
}

.wheel-left {
    top: -100px;
    left: -150px;
    width: 400px;
    height: 400px;
    animation: wheelSpin 60s linear infinite;
}

.wheel-right {
    bottom: -80px;
    right: -120px;
    width: 350px;
    height: 350px;
    animation: wheelSpin 80s linear infinite reverse;
}

/* Speedometer container */
.speedometer-container {
    position: absolute;
    top: 5%;
    left: 3%;
    width: 250px;
    height: 250px;
    pointer-events: none;
}

.speedometer {
    width: 100%;
    height: 100%;
    color: #fffbb2;
    filter: drop-shadow(0 0 20px rgba(255, 107, 0, 0.2));
}

/* Needle animation - sweeps like revving */
@keyframes needleSweep {
    0% {
        transform: rotate(-90deg);
    }

    20% {
        transform: rotate(-30deg);
    }

    40% {
        transform: rotate(-60deg);
    }

    60% {
        transform: rotate(0deg);
    }

    80% {
        transform: rotate(-45deg);
    }

    100% {
        transform: rotate(-90deg);
    }
}

.speedo-needle {
    transform-origin: 100px 100px;
    animation: needleSweep 4s ease-in-out infinite;
}

/* Speed display pulse */
@keyframes speedPulse {

    0%, 100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.7;
    }
}

.speed-display {
    animation: speedPulse 1s ease-in-out infinite;
}

/* Chain pattern at bottom */
.chain-pattern {
    position: absolute;
    bottom: 100px;
    left: 0;
    width: 100%;
    height: 30px;
    color: #fffbb2;
    display: flex;
    justify-content: center;
}

    .chain-pattern svg {
        width: 600px;
        height: 30px;
    }

/* Tire tracks */
.tire-track {
    position: absolute;
    width: 3px;
    background: linear-gradient(to bottom, transparent 0%, rgba(255, 251, 178, 0.05) 20%, rgba(255, 251, 178, 0.08) 50%, rgba(255, 251, 178, 0.05) 80%, transparent 100%);
}

.tire-track-1 {
    height: 100%;
    left: 10%;
    top: 0;
}

.tire-track-2 {
    height: 100%;
    right: 10%;
    top: 0;
}

/* Gear elements */
.gear-element {
    position: absolute;
    color: #fffbb2;
}

.gear-1 {
    top: 15%;
    right: 8%;
    width: 120px;
    height: 120px;
    animation: gearRotate 30s linear infinite;
}

.gear-2 {
    bottom: 20%;
    left: 5%;
    width: 80px;
    height: 80px;
    animation: gearRotate 25s linear infinite reverse;
}

/* ============================================
   LIGHT TRAILS - MOTORCYCLE STREAKS
   ============================================ */

/* Light trail animation - left to right */
@keyframes trailZoom {
    0% {
        transform: translateX(-300px);
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        transform: translateX(calc(100vw + 300px));
        opacity: 0;
    }
}

/* Light trail animation - right to left */
@keyframes trailZoomReverse {
    0% {
        transform: translateX(calc(100vw + 300px)) scaleX(-1);
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        transform: translateX(-300px) scaleX(-1);
        opacity: 0;
    }
}

/* Glow pulse animation */
@keyframes glowPulse {

    0%, 100% {
        filter: blur(10px) brightness(1);
    }

    50% {
        filter: blur(15px) brightness(1.3);
    }
}

/* Headlight cone pulse animation */
@keyframes headlightPulse {

    0%, 100% {
        opacity: 0.6;
        transform: scaleY(1);
    }

    50% {
        opacity: 0.9;
        transform: scaleY(1.1);
    }
}

@keyframes headlightFlicker {

    0%, 100% {
        opacity: 0.7;
    }

    25% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.8;
    }

    75% {
        opacity: 0.6;
    }
}

.light-trails-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 5;
}

.light-trail {
    position: absolute;
    display: flex;
    align-items: center;
}

/* Trail head - the bright front light */
.trail-head {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0%, #fffbb2 40%, transparent 70%);
    box-shadow: 0 0 20px 10px rgba(255, 251, 178, 0.8), 0 0 40px 20px rgba(255, 200, 100, 0.5), 0 0 60px 30px rgba(255, 150, 50, 0.3);
    z-index: 3;
    flex-shrink: 0;
}

/* Trail body - the streaking light */
.trail-body {
    width: 250px;
    height: 4px;
    background: linear-gradient(90deg, rgba(255, 251, 178, 0.9) 0%, rgba(255, 180, 50, 0.6) 30%, rgba(255, 107, 0, 0.3) 60%, transparent 100%);
    margin-left: -10px;
    border-radius: 0 2px 2px 0;
    z-index: 2;
}

/* Trail glow - ambient light */
.trail-glow {
    position: absolute;
    left: 0;
    width: 300px;
    height: 60px;
    background: radial-gradient(ellipse at left center, rgba(255, 200, 100, 0.3) 0%, rgba(255, 107, 0, 0.1) 40%, transparent 70%);
    animation: glowPulse 0.5s ease-in-out infinite;
    z-index: 1;
}

/* Trail 1 - Fast orange (top) */
.trail-1 {
    top: 12%;
    animation: trailZoom 4s ease-in-out infinite;
}

    .trail-1 .trail-head {
        width: 24px;
        height: 24px;
        box-shadow: 0 0 25px 12px rgba(255, 180, 100, 0.9), 0 0 50px 25px rgba(255, 140, 50, 0.6), 0 0 80px 40px rgba(255, 100, 0, 0.3);
    }

    .trail-1 .trail-body {
        width: 300px;
        height: 6px;
    }

    .trail-1 .trail-glow {
        height: 80px;
        width: 350px;
    }

/* Trail 2 - Golden (upper middle) */
.trail-2 {
    top: 28%;
    animation: trailZoom 5s ease-in-out infinite 1.5s;
}

    .trail-2 .trail-head {
        background: radial-gradient(circle, #fff 0%, #ffd700 40%, transparent 70%);
        box-shadow: 0 0 20px 10px rgba(255, 215, 0, 0.8), 0 0 40px 20px rgba(255, 180, 0, 0.5);
    }

    .trail-2 .trail-body {
        background: linear-gradient(90deg, rgba(255, 215, 0, 0.8) 0%, rgba(255, 180, 0, 0.5) 30%, rgba(255, 140, 0, 0.2) 60%, transparent 100%);
    }

/* Trail 3 - Red/orange from right (middle) */
.trail-3 {
    top: 45%;
    animation: trailZoomReverse 6s ease-in-out infinite 3s;
}

    .trail-3 .trail-head {
        background: radial-gradient(circle, #fff 0%, #ff6b35 40%, transparent 70%);
        box-shadow: 0 0 20px 10px rgba(255, 100, 50, 0.8), 0 0 40px 20px rgba(220, 60, 30, 0.5);
    }

    .trail-3 .trail-body {
        background: linear-gradient(90deg, rgba(255, 100, 50, 0.8) 0%, rgba(220, 60, 30, 0.5) 30%, rgba(180, 40, 20, 0.2) 60%, transparent 100%);
        width: 220px;
    }

/* Trail 4 - Small fast streak (lower) */
.trail-4 {
    top: 65%;
    animation: trailZoom 3s ease-in-out infinite 0.5s;
}

    .trail-4 .trail-head {
        width: 16px;
        height: 16px;
    }

    .trail-4 .trail-body {
        width: 180px;
        height: 3px;
    }

    .trail-4 .trail-glow {
        height: 40px;
        width: 200px;
    }

/* Trail 5 - Amber from right (bottom) */
.trail-5 {
    top: 80%;
    animation: trailZoomReverse 5s ease-in-out infinite 2s;
}

    .trail-5 .trail-head {
        width: 18px;
        height: 18px;
        background: radial-gradient(circle, #fff 0%, #ffb347 40%, transparent 70%);
        box-shadow: 0 0 18px 9px rgba(255, 179, 71, 0.8), 0 0 35px 18px rgba(255, 140, 50, 0.5);
    }

    .trail-5 .trail-body {
        width: 200px;
        height: 4px;
        background: linear-gradient(90deg, rgba(255, 179, 71, 0.8) 0%, rgba(255, 140, 50, 0.5) 30%, rgba(255, 100, 30, 0.2) 60%, transparent 100%);
    }

/* ============================================
   SWEEPING HEADLIGHT BEAMS
   ============================================ */

.headlight-sweeps {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}

.sweep {
    position: absolute;
    width: 400px;
    height: 100vh;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 200, 100, 0.05) 20%, rgba(255, 200, 100, 0.1) 50%, rgba(255, 200, 100, 0.05) 80%, transparent 100%);
}

.sweep-1 {
    top: 0;
    animation: sweepBeam 8s linear infinite;
}

.sweep-2 {
    top: 0;
    animation: sweepBeam 10s linear infinite 3s;
    opacity: 0.7;
}

.sweep-3 {
    top: 0;
    animation: sweepBeam 12s linear infinite 6s;
    opacity: 0.5;
}

/* ============================================
   SPEED LINES
   ============================================ */

.speed-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.speed-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 150, 50, 0.6) 50%, transparent 100%);
    border-radius: 2px;
}

.line-1 {
    top: 10%;
    width: 150px;
    animation: speedLine 1.5s linear infinite;
}

.line-2 {
    top: 20%;
    width: 200px;
    animation: speedLine 1.8s linear infinite 0.2s;
}

.line-3 {
    top: 30%;
    width: 120px;
    animation: speedLine 1.3s linear infinite 0.5s;
}

.line-4 {
    top: 45%;
    width: 180px;
    animation: speedLine 2s linear infinite 0.8s;
}

.line-5 {
    top: 55%;
    width: 100px;
    animation: speedLine 1.4s linear infinite 1s;
}

.line-6 {
    top: 65%;
    width: 160px;
    animation: speedLine 1.7s linear infinite 1.3s;
}

.line-7 {
    top: 75%;
    width: 140px;
    animation: speedLine 1.6s linear infinite 0.3s;
}

.line-8 {
    top: 85%;
    width: 190px;
    animation: speedLine 1.9s linear infinite 0.7s;
}

.line-9 {
    top: 38%;
    width: 110px;
    animation: speedLine 1.5s linear infinite 1.1s;
}

.line-10 {
    top: 92%;
    width: 130px;
    animation: speedLine 1.4s linear infinite 0.9s;
}

/* ============================================
   FLOATING EMBERS
   ============================================ */

.embers-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 3;
}

.ember {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #ff6b00 0%, #ff3c00 50%, transparent 100%);
    border-radius: 50%;
    animation: floatEmber 8s ease-out infinite, emberGlow 0.5s ease-in-out infinite;
}

.ember-1 {
    left: 5%;
    animation-duration: 7s;
    animation-delay: 0s;
}

.ember-2 {
    left: 15%;
    animation-duration: 9s;
    animation-delay: 1s;
    width: 3px;
    height: 3px;
}

.ember-3 {
    left: 25%;
    animation-duration: 6s;
    animation-delay: 2s;
}

.ember-4 {
    left: 35%;
    animation-duration: 8s;
    animation-delay: 0.5s;
    width: 5px;
    height: 5px;
}

.ember-5 {
    left: 45%;
    animation-duration: 10s;
    animation-delay: 3s;
}

.ember-6 {
    left: 55%;
    animation-duration: 7s;
    animation-delay: 1.5s;
    width: 3px;
    height: 3px;
}

.ember-7 {
    left: 65%;
    animation-duration: 9s;
    animation-delay: 2.5s;
}

.ember-8 {
    left: 75%;
    animation-duration: 6s;
    animation-delay: 0.8s;
    width: 4px;
    height: 4px;
}

.ember-9 {
    left: 85%;
    animation-duration: 8s;
    animation-delay: 1.8s;
}

.ember-10 {
    left: 95%;
    animation-duration: 7s;
    animation-delay: 3.5s;
    width: 3px;
    height: 3px;
}

.ember-11 {
    left: 10%;
    animation-duration: 11s;
    animation-delay: 4s;
}

.ember-12 {
    left: 30%;
    animation-duration: 8s;
    animation-delay: 2.2s;
    width: 5px;
    height: 5px;
}

.ember-13 {
    left: 50%;
    animation-duration: 9s;
    animation-delay: 1.2s;
}

.ember-14 {
    left: 70%;
    animation-duration: 7s;
    animation-delay: 3.8s;
    width: 4px;
    height: 4px;
}

.ember-15 {
    left: 90%;
    animation-duration: 10s;
    animation-delay: 0.3s;
}

/* ============================================
   ROAD EFFECT
   ============================================ */

.road-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    pointer-events: none;
    z-index: 4;
    perspective: 500px;
}

.road {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, #1a1a1a 0%, transparent 100%);
    display: flex;
    align-items: center;
    gap: 100px;
    overflow: hidden;
}

.lane-marking {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    animation: laneMove 2s linear infinite;
    flex-shrink: 0;
}

    .lane-marking:nth-child(1) {
        animation-delay: 0s;
    }

    .lane-marking:nth-child(2) {
        animation-delay: 0.2s;
    }

    .lane-marking:nth-child(3) {
        animation-delay: 0.4s;
    }

    .lane-marking:nth-child(4) {
        animation-delay: 0.6s;
    }

    .lane-marking:nth-child(5) {
        animation-delay: 0.8s;
    }

    .lane-marking:nth-child(6) {
        animation-delay: 1s;
    }

    .lane-marking:nth-child(7) {
        animation-delay: 1.2s;
    }

    .lane-marking:nth-child(8) {
        animation-delay: 1.4s;
    }

    .lane-marking:nth-child(9) {
        animation-delay: 1.6s;
    }

    .lane-marking:nth-child(10) {
        animation-delay: 1.8s;
    }

.road-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 30px;
    background: radial-gradient(ellipse at center bottom, rgba(234, 88, 12, 0.2) 0%, transparent 70%);
}

/* ============================================
   FLAME ACCENTS
   ============================================ */

.flame {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.flame-left {
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(234, 88, 12, 0.5) 0%, rgba(220, 38, 38, 0.3) 30%, transparent 70%);
    animation: flameFlicker 4s ease-in-out infinite;
}

.flame-right {
    top: -150px;
    right: -150px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(234, 88, 12, 0.4) 0%, rgba(220, 38, 38, 0.2) 30%, transparent 70%);
    animation: flameFlicker 5s ease-in-out infinite 1.5s;
}

.flame-bottom {
    bottom: -100px;
    right: 20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 100, 0, 0.3) 0%, rgba(220, 38, 38, 0.15) 30%, transparent 70%);
    animation: flameFlicker 6s ease-in-out infinite 3s;
}

/* ============================================
   LOGIN CARD
   ============================================ */

.login-card {
    background: linear-gradient(to bottom, rgba(17, 24, 39, 0.95), rgba(0, 0, 0, 0.95));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(234, 88, 12, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(234, 88, 12, 0.2);
    overflow: hidden;
}

.top-bar {
    height: 0.5rem;
    background: linear-gradient(to right, #fffbb2, #bc9a34, #fffbb2);
}

.card-content {
    padding: 1.5rem;
}

/* Logo */
.logo-container {
    display: flex;
    justify-content: center;
}

.logo-wrapper {
    position: relative;
}

.logo-glow {
    position: absolute;
    inset: -10px;
    background-color: #fffbb2;
    filter: blur(30px);
    opacity: 0.6;
    border-radius: 50%;
}

.logo-icon {
    position: relative;
    background: linear-gradient(to bottom right, #fffbb2, #bc9a34);
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(234, 88, 12, 0.4);
}

.bike-icon {
    width: 3rem;
    height: 3rem;
    color: white;
}

/* Title */
.title-section {
    text-align: center;
    margin-bottom: 1.5rem;
}

.title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #fffbb2;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
    text-shadow: 0 0 30px rgba(234, 88, 12, 0.3);
}

.title-gradient {
    background: linear-gradient(to right, #fffbb2, #bc9a34);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.subtitle {
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
}

/* Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #d1d5db;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: #6b7280;
    transition: color 0.2s ease;
    pointer-events: none;
}

.input-wrapper:focus-within .input-icon {
    color: #fffbb2;
}

.form-input {
    width: 100%;
    background-color: rgba(17, 24, 39, 0.8);
    border: 1px solid #374151;
    border-radius: 0.75rem;
    padding: 0.875rem 1rem 0.875rem 3rem;
    color: white;
    font-size: 1rem;
    transition: all 0.2s ease;
}

    .form-input::placeholder {
        color: #6b7280;
    }

    .form-input:focus {
        outline: none;
        border-color: #fffbb2;
        box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2), 0 0 20px rgba(249, 115, 22, 0.1);
    }

.password-input {
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.2s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .toggle-password:hover {
        color: #fffbb2;
    }

.eye-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.hidden {
    display: none;
}

/* Form Options */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -0.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
    background-color: #111827;
    border: 1px solid #374151;
    cursor: pointer;
    accent-color: #fffbb2;
}

.remember-text {
    margin-left: 0.5rem;
    font-size: 0.875rem;
    color: #9ca3af;
    transition: color 0.2s ease;
}

.remember-me:hover .remember-text {
    color: #d1d5db;
}

.forgot-password {
    font-size: 0.875rem;
    color: #fffbb2;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .forgot-password:hover {
        color: #fb923c;
    }

/* Submit Button */
.submit-btn {
    width: 100%;
    background: linear-gradient(to right, #fffbb2, #bc9a34);
    color: black;
    font-weight: 700;
    padding: 1rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: 0 10px 30px -5px rgba(234, 88, 12, 0.5);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

    .submit-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }

    .submit-btn:hover::before {
        left: 100%;
    }

    .submit-btn:hover {
        background: linear-gradient(to right, #fffbb2, #bc9a34);
        box-shadow: 0 15px 40px -5px rgba(234, 88, 12, 0.6);
        transform: translateY(-2px);
    }

    .submit-btn:active {
        transform: translateY(0) scale(0.98);
    }

/* Join Section */
.join-section {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(31, 41, 55, 0.5);
}

.join-text {
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

.join-link {
    color: #fffbb2;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .join-link:hover {
        color: #fb923c;
        text-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
    }

/* Bottom Bar */
.bottom-bar {
    height: 0.25rem;
    background: linear-gradient(to right, transparent, #fffbb2, transparent);
    opacity: 0.5;
}

/* Tagline */
.tagline {
    text-align: center;
    color: #fffbb2;
    font-size: 0.75rem;
    margin-top: 1rem;
    letter-spacing: 0.1em;
}

/* ============================================
   RESPONSIVE - MOBILE FRIENDLY
   ============================================ */

/* Tablet */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 0 1rem;
        max-width: 100%;
    }

    .card-content {
        padding: 1.5rem;
    }

    .title {
        font-size: 2rem;
    }

    /* Scale down speedometer */
    .speedometer-container {
        width: 150px;
        height: 150px;
        top: 2%;
        left: 2%;
    }

    /* Scale down wheels */
    .wheel-left {
        width: 250px;
        height: 250px;
        top: -80px;
        left: -100px;
    }

    .wheel-right {
        width: 200px;
        height: 200px;
        bottom: -60px;
        right: -80px;
    }

    /* Scale down gears */
    .gear-1 {
        width: 80px;
        height: 80px;
    }

    .gear-2 {
        width: 50px;
        height: 50px;
    }

    /* Hide chain pattern */
    .chain-pattern {
        display: none;
    }

    .speed-line {
        height: 1px;
    }

    .ember {
        width: 3px;
        height: 3px;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .content-wrapper {
        padding: 0 0.75rem;
    }

    .card-content {
        padding: 1.25rem;
    }

    .title {
        font-size: 1.75rem;
    }

    .subtitle {
        font-size: 0.75rem;
    }

    .form-label {
        font-size: 0.75rem;
    }

    .form-input {
        padding: 0.75rem 1rem 0.75rem 2.75rem;
        font-size: 0.875rem;
    }

    .input-icon {
        width: 1rem;
        height: 1rem;
        left: 0.875rem;
    }

    .form-options {
        /*flex-direction: column;*/
        gap: 0.75rem;
        align-items: flex-start;
    }

    .submit-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }

    /* Hide or minimize decorative elements on mobile */
    .speedometer-container {
        width: 100px;
        height: 100px;
        top: 1%;
        left: 1%;
        opacity: 0.5;
    }

    .wheel-left {
        width: 150px;
        height: 150px;
        top: -60px;
        left: -80px;
        opacity: 0.3;
    }

    .wheel-right {
        width: 120px;
        height: 120px;
        bottom: -40px;
        right: -50px;
        opacity: 0.3;
    }

    .gear-1,
    .gear-2 {
        display: none;
    }

    .tire-track {
        display: none;
    }

    /* Reduce flames */
    .flame-left,
    .flame-right {
        width: 200px;
        height: 200px;
    }

    .flame-bottom {
        width: 150px;
        height: 150px;
    }

    /* Reduce road effect */
    .road-container {
        height: 50px;
    }

    .road {
        height: 40px;
    }

    /* Reduce sweeps */
    .sweep {
        width: 200px;
    }

    /* Fewer speed lines visible */
    .line-4,
    .line-5,
    .line-6,
    .line-7 {
        display: none;
    }

    .speed-line {
        height: 1px;
        width: 80px !important;
    }

    /* Fewer embers */
    .ember-6,
    .ember-7,
    .ember-8,
    .ember-9,
    .ember-10,
    .ember-11,
    .ember-12,
    .ember-13,
    .ember-14,
    .ember-15 {
        display: none;
    }

    .ember {
        width: 2px;
        height: 2px;
    }

    .tagline {
        font-size: 0.65rem;
        margin-top: 1rem;
    }

    /* Logo smaller */
    .logo-container img {
        width: 100px;
        height: 100px;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    .card-content {
        padding: 1rem;
    }

    .title {
        font-size: 1.5rem;
    }

    .login-form {
        gap: 1rem;
    }

    /* Hide speedometer completely */
    .speedometer-container {
        display: none;
    }

    /* Minimal wheels */
    .wheel-left,
    .wheel-right {
        opacity: 0.2;
    }
}

.field-error {
    color: #ff3b3b;
    font-size: 14px;
    margin-top: 6px;
    display: block;
    min-height: 14px;
    font-weight: 500;
}

/* Red glow on invalid */
.form-input.error {
    border: 1px solid #ff3b3b;
    box-shadow: 0 0 0 1px rgba(255, 59, 59, 0.4);
}

#formError {
    color: #ff3b3b;
    font-size: 14px;
    margin-top: 6px;
    display: block;
    min-height: 14px;
    font-weight: 500;
}
