/* Weather Container */
.weather-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    transition: background 2s ease;
    animation: gradientMove 20s ease infinite;
    background-size: 200% 200%;
    will-change: background-position, background-size;
}

/* Theme Colors */
:root {
    --primary-color: #4a90e2;
    --primary-dark: #357abd;
    --primary-light: #6ba7e7;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --text-color: #333;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --bg-color: #f8f9fa;
    --hover-bg: #e9ecef;
    --card-bg: rgba(255, 255, 255, 0.98);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --text-color: #e1e1e1;
    --text-muted: #a0a0a0;
    --border-color: #2d3436;
    --bg-color: #1a1a1a;
    --hover-bg: #2d3436;
    --card-bg: rgba(26, 26, 26, 0.98);
}

/* Theme-based Input Styles */
[data-theme="dark"] .form-control,
[data-theme="dark"] .input-group-text,
[data-theme="dark"] .card,
[data-theme="dark"] .btn {
    background-color: rgba(0, 0, 0, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

[data-theme="light"] .form-control,
[data-theme="light"] .input-group-text,
[data-theme="light"] .card,
[data-theme="light"] .btn {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: rgba(0, 0, 0, 0.9) !important;
}

/* Auth Page Styles */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2rem 1rem;
}

.auth-wrapper {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.auth-wrapper .card {
    background: var(--card-bg);
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* Rest of your auth styles... */

/* Authentication Pages Styles */
:root {
    --primary-color: #4a90e2;
    --primary-dark: #357abd;
    --primary-light: #6ba7e7;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --text-color: #333;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --bg-color: #f8f9fa;
    --hover-bg: #e9ecef;
    --card-bg: rgba(255, 255, 255, 0.98);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    --gradient-success: linear-gradient(135deg, var(--success-color), #1f8f3c);
    --gradient-danger: linear-gradient(135deg, var(--danger-color), #bd2130);
    --gradient-warning: linear-gradient(135deg, var(--warning-color), #e0a800);
    --gradient-info: linear-gradient(135deg, var(--info-color), #138496);

    /* Weather Background Colors - Day */
    --day-clear: linear-gradient(to bottom, #87CEEB 0%, #4A90E2 100%);
    --day-cloudy: linear-gradient(to bottom, #B8D8E8 0%, #7FA5C1 100%);
    --day-storm: linear-gradient(to bottom, #34495E 0%, #2C3E50 100%);
    --day-snow: linear-gradient(to bottom, #E8F2F6 0%, #B8D8E8 100%);
    
    /* Weather Background Colors - Night */
    --night-clear: linear-gradient(to bottom, #1a1a2e 0%, #16213E 50%, #0F172A 100%);
    --night-cloudy: linear-gradient(to bottom, #2C3E50 0%, #1a1a2e 100%);
    --night-storm: linear-gradient(to bottom, #1a1a2e 0%, #0F172A 100%);
    --night-stars: linear-gradient(to bottom, #0F172A 0%, #1a1a2e 100%);

    --sky-color: #87CEEB;
    --horizon-color: #E0F7FA;
}

[data-theme="dark"] {
    --primary-color: #4a90e2;
    --primary-dark: #357abd;
    --primary-light: #6ba7e7;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --text-color: #e1e1e1;
    --text-muted: #a0a0a0;
    --border-color: #2d3436;
    --bg-color: #1a1a1a;
    --hover-bg: #2d3436;
    --card-bg: rgba(26, 26, 26, 0.98);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.3);
    --sky-color: #000080;
    --horizon-color: #191970;
}

/* Weather Animations */
@keyframes float {
    0% { transform: translateX(110vw); }
    100% { transform: translateX(-20vw); }
}

@keyframes kiteFloat {
    0% { transform: translateX(110vw) translateY(0) rotate(15deg); }
    25% { transform: translateX(82.5vw) translateY(-30px) rotate(-5deg); }
    50% { transform: translateX(55vw) translateY(0) rotate(10deg); }
    75% { transform: translateX(27.5vw) translateY(-20px) rotate(-8deg); }
    100% { transform: translateX(-10vw) translateY(0) rotate(12deg); }
}

@keyframes planeFloat {
    0% { transform: translateX(110vw) translateY(0) rotate(0); }
    100% { transform: translateX(-10vw) translateY(0) rotate(0); }
}

@keyframes twisterSpin {
    0% { transform: translateX(110vw) rotate(0) scale(1); }
    25% { transform: translateX(82.5vw) rotate(360deg) scale(1.2); }
    50% { transform: translateX(55vw) rotate(720deg) scale(1); }
    75% { transform: translateX(27.5vw) rotate(1080deg) scale(1.2); }
    100% { transform: translateX(-10vw) rotate(1440deg) scale(1); }
}

@keyframes birdFloat {
    0% { transform: translateX(110vw) translateY(0) rotate(0); }
    25% { transform: translateX(82.5vw) translateY(-20px) rotate(5deg); }
    50% { transform: translateX(55vw) translateY(0) rotate(-5deg); }
    75% { transform: translateX(27.5vw) translateY(-15px) rotate(5deg); }
    100% { transform: translateX(-10vw) translateY(0) rotate(0); }
}

@keyframes leafFloat {
    0% { transform: translateX(110vw) translateY(0) rotate(0) scale(1); }
    25% { transform: translateX(82.5vw) translateY(-30px) rotate(180deg) scale(0.8); }
    50% { transform: translateX(55vw) translateY(20px) rotate(360deg) scale(1); }
    75% { transform: translateX(27.5vw) translateY(-20px) rotate(540deg) scale(0.9); }
    100% { transform: translateX(-10vw) translateY(0) rotate(720deg) scale(1); }
}

@keyframes sandstormParticle {
    0% { transform: translateX(110vw) translateY(0) rotate(0) scale(1); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateX(-10vw) translateY(20px) rotate(360deg) scale(0.5); opacity: 0; }
}

/* Enhanced Weather Elements */
.kite {
    position: absolute;
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, #ff6b6b, #ff8787);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: kiteFloat 15s linear infinite;
    z-index: 2;
}

.kite::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
    transform: rotate(-45deg);
    transform-origin: 100% 0;
    right: 0;
    top: 50%;
}

.plane {
    position: absolute;
    width: 40px;
    height: 20px;
    background: #fff;
    clip-path: polygon(0% 50%, 80% 50%, 100% 20%, 80% 50%, 100% 80%);
    animation: planeFloat 20s linear infinite;
    z-index: 2;
}

.plane::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 30px;
    background: #fff;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    clip-path: polygon(20% 0%, 80% 0%, 100% 50%, 0% 50%);
}

.twister {
    position: absolute;
    width: 20px;
    height: 100px;
    background: linear-gradient(to bottom, 
        rgba(255,255,255,0.1),
        rgba(255,255,255,0.4) 20%,
        rgba(255,255,255,0.6) 40%,
        rgba(255,255,255,0.4) 60%,
        rgba(255,255,255,0.1) 80%,
        transparent
    );
    filter: blur(2px);
    animation: twisterSpin 12s linear infinite;
    z-index: 2;
}

.bird {
    position: absolute;
    width: 20px;
    height: 10px;
    animation: birdFloat 10s linear infinite;
    z-index: 2;
}

.bird::before,
.bird::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 3px;
    background: #000;
    top: 0;
    transform-origin: 0% 50%;
}

.bird::after {
    transform: rotate(-45deg);
}

.leaf {
    position: absolute;
    width: 15px;
    height: 15px;
    background: #90be6d;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: leafFloat 8s linear infinite;
    z-index: 2;
}

.sandstorm-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(210, 180, 140, 0.6);
    border-radius: 50%;
    filter: blur(1px);
    animation: sandstormParticle 4s linear infinite;
    z-index: 2;
}

/* Enhanced Cloud Styles */
.cloud {
    position: absolute;
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0.95),
        rgba(255, 255, 255, 0.8)
    );
    border-radius: 50px;
    box-shadow: 
        inset -2px -2px 10px rgba(0, 0, 0, 0.1),
        inset 2px 2px 10px rgba(255, 255, 255, 0.8),
        0 5px 15px rgba(0, 0, 0, 0.1);
    filter: blur(1px);
    animation: float var(--cloud-speed) linear infinite;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: inherit;
    box-shadow: inherit;
}

.cloud::before {
    width: 60%;
    height: 80%;
    top: -40%;
    left: 15%;
    border-radius: 50%;
}

.cloud::after {
    width: 50%;
    height: 70%;
    top: -30%;
    right: 15%;
    border-radius: 50%;
}

.cloud-layer {
    position: absolute;
    background: inherit;
    box-shadow: inherit;
}

.cloud-layer:nth-child(1) {
    width: 120%;
    height: 120%;
    top: -30%;
    left: -10%;
    border-radius: 100px;
}

.cloud-layer:nth-child(2) {
    width: 100%;
    height: 100%;
    top: -40%;
    right: -15%;
    border-radius: 80px;
}

.cloud-layer:nth-child(3) {
    width: 110%;
    height: 110%;
    top: -35%;
    left: 15%;
    border-radius: 90px;
}

.cloud-layer:nth-child(4) {
    width: 90%;
    height: 90%;
    top: -25%;
    right: 5%;
    border-radius: 70px;
}

.night-cloud {
    background: linear-gradient(to bottom,
        rgba(40, 40, 50, 0.8),
        rgba(30, 30, 40, 0.6)
    );
    box-shadow: 
        inset -2px -2px 10px rgba(0, 0, 0, 0.2),
        inset 2px 2px 10px rgba(255, 255, 255, 0.1),
        0 5px 15px rgba(0, 0, 0, 0.2);
}

.night-cloud .cloud-layer,
.night-cloud::before,
.night-cloud::after {
    background: inherit;
    box-shadow: inherit;
}

/* Enhanced Lightning */
.lightning {
    position: absolute;
    width: 4px;
    height: 0;
    background: #fff;
    box-shadow: 
        0 0 10px #fff,
        0 0 20px #fff,
        0 0 30px #fff9c4,
        0 0 40px #ffd54f,
        0 0 50px #ffb300,
        0 0 60px #ff9800;
    animation: lightningFlash 1s ease-out;
    transform-origin: top;
    z-index: 3;
}

.lightning::before,
.lightning::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 50%;
    background: inherit;
    box-shadow: inherit;
    top: 30%;
}

.lightning::before {
    transform: rotate(-35deg);
    left: 2px;
}

.lightning::after {
    transform: rotate(35deg);
    right: 2px;
}

.lightning-flash {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    animation: flash 1s ease-out;
    pointer-events: none;
    z-index: 4;
}

@keyframes lightningFlash {
    0% {
        height: 0;
        opacity: 0;
    }
    10% {
        height: var(--flash-height, 70vh);
        opacity: 1;
    }
    20% {
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    40% {
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
    }
}

@keyframes flash {
    0%, 100% {
        opacity: 0;
    }
    10%, 30% {
        opacity: 0.3;
    }
    20% {
        opacity: 0.2;
    }
    40% {
        opacity: 0.1;
    }
}

/* Enhanced Rain */
.rain {
    position: absolute;
    width: 2px;
    height: 20px;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.6));
    animation: rainFall linear infinite;
    z-index: 2;
}

@keyframes rainFall {
    0% {
        transform: translateY(-20px) rotate(20deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(100vh) rotate(20deg);
        opacity: 0;
    }
}

/* Enhanced Snow */
.snowflake {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    filter: blur(1px);
    animation: snowfall linear infinite;
    z-index: 2;
}

@keyframes snowfall {
    0% {
        transform: translateY(-10px) rotate(0deg) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotate(360deg) translateX(50px);
        opacity: 0;
    }
}

/* Weather Base Styles */
.weather-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    background: var(--sky-color);
    transition: background 2s ease;
}

/* Theme-independent Weather Styles */
[data-theme="light"] .weather-container,
[data-theme="dark"] .weather-container {
    background: none;
}

/* Theme-based Input Styles - Only affect form elements */
[data-theme="dark"] .form-control,
[data-theme="dark"] .input-group-text,
[data-theme="dark"] .card,
[data-theme="dark"] .btn {
    background-color: rgba(0, 0, 0, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

[data-theme="light"] .form-control,
[data-theme="light"] .input-group-text,
[data-theme="light"] .card,
[data-theme="light"] .btn {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: rgba(0, 0, 0, 0.9) !important;
}

/* Celestial Body (Sun) */
.celestial {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, 
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 215, 0, 0.8) 50%,
        rgba(255, 215, 0, 0.4) 100%
    );
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.6);
    transition: all 1s ease;
    z-index: 1;
}

/* Stars */
.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    box-shadow: 
        0 0 2px #fff,
        0 0 4px #fff,
        0 0 6px #fff9c4;
    transition: opacity 0.3s ease;
    will-change: transform, opacity;
    transform-origin: center center;
}

@keyframes starPulse0 {
    0%, 100% { 
        opacity: var(--min-opacity);
        transform: scale(1);
        filter: brightness(1);
    }
    50% { 
        opacity: var(--max-opacity);
        transform: scale(var(--star-scale));
        filter: brightness(1.2);
    }
}

@keyframes starPulse1 {
    0%, 100% { 
        opacity: var(--min-opacity);
        transform: scale(var(--star-scale));
        filter: brightness(1);
    }
    25%, 75% { 
        opacity: var(--max-opacity);
        transform: scale(1);
        filter: brightness(1.3);
    }
    50% { 
        opacity: var(--min-opacity);
        transform: scale(var(--star-scale));
        filter: brightness(0.8);
    }
}

@keyframes starPulse2 {
    0%, 100% { 
        opacity: var(--max-opacity);
        transform: scale(1);
        filter: brightness(1.1);
    }
    33% { 
        opacity: var(--min-opacity);
        transform: scale(var(--star-scale));
        filter: brightness(0.9);
    }
    66% { 
        opacity: var(--max-opacity);
        transform: scale(1.1);
        filter: brightness(1.2);
    }
}

/* Shooting Stars */
.shooting-star {
    position: absolute;
    width: 300px;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.3) 25%,
        rgba(255,255,255,1) 50%,
        rgba(255,255,255,0.3) 75%,
        rgba(255,255,255,0) 100%
    );
    box-shadow: 
        0 0 4px #fff,
        0 0 8px #fff,
        0 0 12px #fff9c4;
    opacity: 0;
    transform-origin: left;
    will-change: transform, opacity;
}

.shooting-star::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 3px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 
        0 0 4px #fff,
        0 0 8px #fff9c4;
    transform: translate(-50%, -50%);
}

@keyframes shootingStar {
    0% {
        transform: translateX(-100%) translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateX(200%) translateY(100%) rotate(0deg);
        opacity: 0;
    }
}

/* Cloud */
.cloud {
    position: absolute;
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0.95),
        rgba(255, 255, 255, 0.8)
    );
    border-radius: 50px;
    box-shadow: 
        inset -2px -2px 10px rgba(0, 0, 0, 0.1),
        inset 2px 2px 10px rgba(255, 255, 255, 0.8),
        0 5px 15px rgba(0, 0, 0, 0.1);
    filter: blur(1px);
    animation: float var(--cloud-speed) linear infinite;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: inherit;
    box-shadow: inherit;
}

.cloud::before {
    width: 60%;
    height: 80%;
    top: -40%;
    left: 15%;
}

.cloud::after {
    width: 50%;
    height: 70%;
    top: -30%;
    right: 15%;
}

.cloud-layer {
    position: absolute;
    background: inherit;
    box-shadow: inherit;
}

@keyframes float {
    0% { transform: translateX(110vw); }
    100% { transform: translateX(-20vw); }
}

/* Theme Colors */
:root {
    --sky-color: #87CEEB;
    --horizon-color: #E0F7FA;
}

[data-theme="dark"] {
    --sky-color: #000080;
    --horizon-color: #191970;
}

/* Basic Theme Styles */
[data-theme="dark"] .weather-container {
    background: linear-gradient(to bottom, var(--sky-color), var(--horizon-color));
}

[data-theme="light"] .weather-container {
    background: linear-gradient(to bottom, var(--sky-color), var(--horizon-color));
}

/* Day Clear Sky */
.weather-day-clear {
    background: linear-gradient(to bottom, #87ceeb, #e0f7fa);
}

/* Day Cloudy */
.weather-day-cloudy {
    background: linear-gradient(to bottom, #90caf9, #e3f2fd);
}

/* Night Cloudy */
.weather-night-cloudy {
    background: linear-gradient(to bottom, #1a237e, #311b92);
}

.night-cloud {
    background: rgba(255, 255, 255, 0.3);
}

/* Storm Effects */
.weather-day-storm,
.weather-night-storm {
    background: linear-gradient(to bottom, #263238, #37474f);
}

/* Snow Effects */
.weather-day-snow {
    background: linear-gradient(to bottom, #eceff1, #cfd8dc);
}

/* Night Sky Effects */
.weather-night-clear,
.weather-night-stars {
    background: linear-gradient(to bottom, #1a237e, #311b92);
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    box-shadow: 
        0 0 2px #fff,
        0 0 4px #fff,
        0 0 6px #fff9c4;
    transition: opacity 0.3s ease;
    will-change: transform, opacity;
    transform-origin: center center;
}

@keyframes starPulse0 {
    0%, 100% { 
        opacity: var(--min-opacity);
        transform: scale(1);
        filter: brightness(1);
    }
    50% { 
        opacity: var(--max-opacity);
        transform: scale(var(--star-scale));
        filter: brightness(1.2);
    }
}

@keyframes starPulse1 {
    0%, 100% { 
        opacity: var(--min-opacity);
        transform: scale(var(--star-scale));
        filter: brightness(1);
    }
    25%, 75% { 
        opacity: var(--max-opacity);
        transform: scale(1);
        filter: brightness(1.3);
    }
    50% { 
        opacity: var(--min-opacity);
        transform: scale(var(--star-scale));
        filter: brightness(0.8);
    }
}

@keyframes starPulse2 {
    0%, 100% { 
        opacity: var(--max-opacity);
        transform: scale(1);
        filter: brightness(1.1);
    }
    33% { 
        opacity: var(--min-opacity);
        transform: scale(var(--star-scale));
        filter: brightness(0.9);
    }
    66% { 
        opacity: var(--max-opacity);
        transform: scale(1.1);
        filter: brightness(1.2);
    }
}

/* Performance Optimizations */
.weather-container * {
    pointer-events: none;
    position: absolute;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    position: relative;
    overflow: hidden;
    padding: 2rem 1rem;
}

.auth-wrapper {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.auth-wrapper .card {
    background: var(--card-bg);
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    transform: translateY(0);
}

.auth-wrapper .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.auth-wrapper .card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 2rem 1.5rem;
    position: relative;
    text-align: center;
}

.auth-wrapper .card-header h4 {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.auth-wrapper .card-header p {
    color: var(--text-muted);
    margin-bottom: 0;
}

.auth-wrapper .theme-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-wrapper .theme-toggle:hover {
    background: var(--hover-bg);
    color: var(--text-color);
}

.auth-wrapper .card-body {
    padding: 2rem;
}

.auth-wrapper .form-group {
    margin-bottom: 1.5rem;
}

.auth-wrapper .form-label {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.auth-wrapper .input-group {
    background: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.auth-wrapper .input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.auth-wrapper .input-group-text {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.75rem 1rem;
}

.auth-wrapper .form-control {
    border: none;
    padding: 0.75rem 1rem;
    background: transparent;
    color: var(--text-color);
    font-size: 1rem;
}

.auth-wrapper .form-control:focus {
    box-shadow: none;
    background: transparent;
}

.auth-wrapper .password-toggle {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-wrapper .password-toggle:hover {
    color: var(--text-color);
}

.auth-wrapper .btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.auth-wrapper .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.auth-wrapper .card-footer {
    background: transparent;
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    text-align: center;
}

.auth-wrapper .text-decoration-none {
    color: var(--primary-color);
    font-weight: 500;
    position: relative;
    display: inline-block;
    margin: 0 0.25rem;
}

.auth-wrapper .text-decoration-none::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.auth-wrapper .text-decoration-none:hover::after {
    transform: scaleX(1);
}

[data-theme="dark"] .auth-wrapper .card {
    background: var(--card-bg);
}

[data-theme="dark"] .auth-wrapper .input-group {
    background: rgba(0, 0, 0, 0.2);
}

@media (max-width: 576px) {
    .auth-wrapper {
        padding: 1rem;
    }

    .auth-wrapper .card {
        margin: 0;
    }

    .auth-wrapper .card-header {
        padding: 1.5rem 1.5rem 1rem;
    }

    .auth-wrapper .card-body {
        padding: 1.5rem;
    }

    .auth-wrapper .card-footer {
        padding: 1rem 1.5rem;
    }

    .auth-wrapper .form-label {
        font-size: 0.85rem;
    }

    .auth-wrapper .input-group-text,
    .auth-wrapper .form-control,
    .auth-wrapper .password-toggle {
        padding: 0.625rem 0.875rem;
    }

    .auth-wrapper .btn-primary {
        padding: 0.625rem 1.25rem;
    }

    .auth-wrapper .form-group {
        margin-bottom: 1.25rem;
    }
}

/* City Background */
.city-background {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60vh;
    z-index: 1;
    perspective: 1000px;
}

.buildings {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    transform-style: preserve-3d;
    transform: translateZ(-100px);
}

.building {
    position: absolute;
    bottom: 0;
    left: var(--offset);
    width: var(--width);
    height: var(--height);
    background: linear-gradient(to bottom,
        var(--building-color-top),
        var(--building-color-bottom)
    );
    box-shadow: 
        -5px 0 15px rgba(0, 0, 0, 0.2),
        5px 0 15px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
    transform: translateZ(calc(var(--offset) * -0.1px));
    border-radius: 2px 2px 0 0;
    overflow: hidden;
}

.building::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(90deg,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0) 20%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(0, 0, 0, 0) 80%,
        rgba(0, 0, 0, 0.2) 100%
    );
}

.window {
    position: absolute;
    width: 8px;
    height: 12px;
    background: linear-gradient(to bottom,
        rgba(255, 255, 220, 0.9),
        rgba(255, 255, 200, 0.8)
    );
    border-radius: 1px;
    transition: all 0.5s ease;
    box-shadow: 
        0 0 5px rgba(255, 255, 200, 0.4),
        0 0 10px rgba(255, 255, 200, 0.2);
}

.window::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0.5),
        rgba(255, 255, 255, 0.2) 20%,
        rgba(0, 0, 0, 0.2) 80%,
        rgba(0, 0, 0, 0.4)
    );
    border-radius: inherit;
}

@keyframes windowGlow {
    0%, 100% { 
        opacity: var(--base-opacity);
        box-shadow: 
            0 0 5px rgba(255, 255, 200, 0.4),
            0 0 10px rgba(255, 255, 200, 0.2);
    }
    50% { 
        opacity: var(--max-opacity);
        box-shadow: 
            0 0 8px rgba(255, 255, 200, 0.6),
            0 0 15px rgba(255, 255, 200, 0.3);
    }
}

/* Space Objects */
.space-object {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.planet {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: inset -5px -5px 15px rgba(0,0,0,0.4);
    animation: planetGlow 4s ease-in-out infinite;
}

.shooting-star {
    width: 100px;
    height: 2px;
    background: linear-gradient(to right,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,1) 50%,
        rgba(255,255,255,0) 100%
    );
    box-shadow: 
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 15px #fff9c4;
    animation: shootingStar 1s ease-out;
    transform-origin: right;
}

@keyframes planetGlow {
    0%, 100% {
        box-shadow: 
            inset -5px -5px 15px rgba(0,0,0,0.4),
            0 0 20px rgba(255,255,255,0.2);
    }
    50% {
        box-shadow: 
            inset -5px -5px 15px rgba(0,0,0,0.4),
            0 0 30px rgba(255,255,255,0.4);
    }
}

@keyframes shootingStar {
    0% {
        transform: scaleX(0) translateX(0);
        opacity: 0;
    }
    50% {
        transform: scaleX(1);
        opacity: 1;
    }
    100% {
        transform: scaleX(0) translateX(-100px);
        opacity: 0;
    }
}

/* Scene Backgrounds */
.scene-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: opacity 2s ease;
    z-index: 0;
}

/* City Scene */
.scene-city {
    background: linear-gradient(to bottom, var(--sky-color), var(--horizon-color));
}

.city-silhouette {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60vh;
    background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.8));
    mask-image: var(--city-mask);
    -webkit-mask-image: var(--city-mask);
}

/* Space Scene */
.space-scene {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: opacity 2s ease;
    background: radial-gradient(circle at center,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    overflow: hidden;
}

.star-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    animation: rotateStarField 240s linear infinite;
    transform-origin: center center;
}

@keyframes rotateStarField {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Shooting Stars */
.shooting-star {
    position: absolute;
    width: 300px;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.3) 25%,
        rgba(255,255,255,1) 50%,
        rgba(255,255,255,0.3) 75%,
        rgba(255,255,255,0) 100%
    );
    box-shadow: 
        0 0 4px #fff,
        0 0 8px #fff,
        0 0 12px #fff9c4;
    opacity: 0;
    transform-origin: left;
    will-change: transform, opacity;
}

.shooting-star::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 3px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 
        0 0 4px #fff,
        0 0 8px #fff9c4;
    transform: translate(-50%, -50%);
}

@keyframes shootingStar {
    0% {
        transform: translateX(-100%) translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateX(200%) translateY(100%) rotate(0deg);
        opacity: 0;
    }
}

/* Stars */
.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    box-shadow: 
        0 0 2px #fff,
        0 0 4px #fff,
        0 0 6px #fff9c4;
    transition: opacity 0.3s ease;
    will-change: transform, opacity;
    transform-origin: center center;
}

@keyframes starTwinkle {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

/* Cloud */
.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    filter: blur(2px);
    opacity: 0.6;
    transition: opacity 2s ease;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: inherit;
    border-radius: 50%;
}

.cloud::before {
    width: 60%;
    height: 80%;
    top: -40%;
    left: 15%;
}

.cloud::after {
    width: 50%;
    height: 70%;
    top: -30%;
    right: 15%;
}

/* Gradient Animation */
@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
        background-size: 100% 100%;
    }
    50% {
        background-position: 100% 50%;
        background-size: 200% 200%;
    }
    100% {
        background-position: 0% 50%;
        background-size: 100% 100%;
    }
}

/* Night Theme Adjustments */
[data-theme="dark"] .cloud {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .star {
    box-shadow: 
        0 0 2px #fff,
        0 0 4px #fff,
        0 0 6px #fff9c4,
        0 0 8px #fff9c4,
        0 0 12px #fff9c4;
} 