@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Noto+Sans+JP:wght@400;700&display=swap');

:root {
    --tokyo-bg: #1a1a1e;
    --tokyo-border: rgba(255, 255, 255, 0.1);
    --tokyo-glow: rgba(37, 165, 225, 0.3);
    --accent-color: #25a5e1;
}

body.page-login, body.page-register {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0d0d0f;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    overflow: hidden;
    color: #ffffff;
}

/* Shibuya Background */
#bodyImage::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/img/city.png');
    background-size: cover;
    background-position: center;
    opacity: 0.20; /* Increased to 20% as requested */
    z-index: 1; /* Moved to positive to sit above body background color */
    pointer-events: none;
}

/* Cinematic Overlay: Noise + Subtle Glows */
#bodyImage::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* Lamp Glows */
        radial-gradient(circle at top left, rgba(37, 165, 225, 0.1), transparent 45%),
        radial-gradient(circle at top right, rgba(37, 165, 225, 0.1), transparent 40%);
    opacity: 0.4; /* Slightly higher opacity for the texture/glows */
    z-index: 2; /* Moved to positive to sit above city image */
    pointer-events: none;
}

/* Glassmorphism Card */
#habborp .container {
    max-width: 580px; 
    width: 90%;
    margin: 0 auto;
}

.login-card {
    background: rgba(20, 20, 25, 0.9); 
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 50px;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.6),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

/* Internal Glow Lamp */
.login-card::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at center, rgba(37, 165, 225, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* Animated GIF Background */
.login-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/static/img/tokyo.gif');
    background-size: cover;
    background-position: center;
    opacity: 0.05; /* 5% opacity as requested */
    z-index: -1;
    pointer-events: none;
}

.card-top-left-strip {
    position: absolute;
    top: -1px;
    left: -1px;
    width: 35px;
    height: 35px;
    border-top: 2px solid var(--accent-color);
    border-left: 2px solid var(--accent-color);
    border-top-left-radius: 24px;
    pointer-events: none;
    z-index: 20;
    filter: drop-shadow(0 0 5px var(--accent-color)) 
            drop-shadow(0 0 15px rgba(37, 165, 225, 0.4));
}

/* Thematic Details */
.shibuya-dist {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 10;
}

.shibuya-dist span {
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: 2px;
}

/* Online Citizen Badge */
.citizen-count {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 10px;
    color: #fff;
    letter-spacing: 1px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.citizen-count::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff88;
}

/* Inputs */
.input-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.input-form:focus-within {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
}

.input-form input {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    padding: 0 !important;
    font-size: 15px;
    box-shadow: none !important;
}

.input-form input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.input-form .icon {
    color: rgba(255, 255, 255, 0.2);
    font-size: 14px;
}

/* Button Base */
.btn-zap {
    border: none;
    border-radius: 12px;
    padding: 16px;
    width: 100%;
    color: #fff !important;
    font-weight: 600;
    text-transform: none;
    letter-spacing: -0.2px;
    font-size: 15px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-primary {
    background: #25a5e1 !important; /* Final Blue */
    color: #fff !important; /* White text as requested */
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 165, 225, 0.4);
}

.btn-secondary {
    background: #2a2a2e !important; /* Dark Grey for CTA switcher */
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: #3a3a3e !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* "Charging" Zap Effect */
@keyframes zap {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    width: 60px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-25deg);
    animation: zap 4s infinite;
}

.logo img {
    max-width: 180px;
    margin-bottom: 40px;
}

.text-account {
    margin-top: 30px;
}

#overlay, .alert-custom {
    display: none !important;
}



.text-account {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    text-align: center;
    margin-top: 24px;
}

.text-account a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
}

.text-account a:hover {
    text-decoration: underline;
}

#overlay, .alert-custom {
    display: none !important;
}
