:root {
    --gold: #d4af37;
    --gold-dim: rgba(212, 175, 55, 0.25);
    --gold-glow: rgba(212, 175, 55, 0.05);
    --silver: #d0d0d0;
    --dark-bg: #000000;
    --glass-bg: rgba(0, 0, 0, 0.75);
    --glass-border: rgba(255, 255, 255, 0.03);
    --glass-highlight: rgba(255, 255, 255, 0.015);
}

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

body {
    background-color: var(--dark-bg);
    color: var(--silver);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    perspective: 1000px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

#starCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Ambient Lights behind the glass to enhance refraction */
.ambient-light {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
    top: 20%;
    left: 30%;
    transform: translate(-50%, -50%);
    filter: blur(60px);
    z-index: 1;
    animation: drift 20s infinite alternate ease-in-out;
    pointer-events: none;
}

.ambient-light.light-2 {
    top: 70%;
    left: 70%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(170, 140, 44, 0.03) 0%, transparent 60%);
    animation: drift 25s infinite alternate-reverse ease-in-out;
}

@keyframes drift {
    0% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-30%, -40%) scale(1.2); }
}

.vip-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    padding: 20px;
    animation: float 6s ease-in-out infinite;
}

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

.glass-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    padding: 56px 48px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.9), 
                inset 0 1px 0 rgba(255, 255, 255, 0.15),
                inset 0 -1px 0 rgba(0, 0, 0, 0.5);
    text-align: center;
    animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px) rotateX(5deg);
    overflow: hidden;
}

/* Glass Inner Reflection */
.glass-reflection {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, var(--glass-highlight), transparent);
    transform: skewX(-25deg);
    animation: shine 8s infinite;
    pointer-events: none;
}

@keyframes shine {
    0%, 60% { left: -100%; }
    100% { left: 200%; }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.logo-area {
    margin-bottom: 48px;
    position: relative;
}

.icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.vip-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.4));
    transition: transform 0.5s ease;
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, var(--gold-dim) 0%, transparent 60%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.glass-card:hover .icon-glow {
    opacity: 1;
}
.glass-card:hover .vip-logo {
    transform: scale(1.05);
}

.brand-title {
    font-family: 'Cinzel', serif;
    font-weight: 500;
    font-size: 26px;
    letter-spacing: 8px;
    margin-bottom: 12px;
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 12px rgba(0,0,0,0.8);
}

.subtitle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.subtitle-wrapper .line {
    height: 1px;
    width: 30px;
    background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.brand-subtitle {
    font-size: 10px;
    letter-spacing: 5px;
    color: var(--gold);
    text-transform: uppercase;
    font-weight: 400;
    opacity: 0.9;
}

.vip-form {
    display: flex;
    flex-direction: column;
    gap: 36px;
    position: relative;
    z-index: 2;
}

.input-wrapper {
    position: relative;
}

.input-group {
    position: relative;
    width: 100%;
}

input[type="password"] {
    width: 100%;
    background: rgba(212, 175, 55, 0.03); /* Subtle gold tint */
    border: 1px solid rgba(212, 175, 55, 0.1); /* Subtle gold border */
    border-radius: 4px;
    color: var(--gold);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 6px;
    padding: 16px 0;
    text-align: center;
    outline: none;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

/* Fix browser autofill white background */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #050505 inset !important;
    -webkit-text-fill-color: var(--gold) !important;
    transition: background-color 5000s ease-in-out 0s;
}

input[type="password"]:hover,
input[type="password"]:focus {
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3), inset 0 0 10px rgba(212, 175, 55, 0.1);
}

input[type="password"]::placeholder {
    color: rgba(212, 175, 55, 0.3);
    letter-spacing: 3px;
    transition: color 0.3s ease;
}

input[type="password"]:focus::placeholder {
    color: transparent;
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--glass-border);
}

.input-border::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.5s cubic-bezier(0.19, 1, 0.22, 1), left 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.input-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 15px;
    background: radial-gradient(ellipse at bottom, var(--gold-glow) 0%, transparent 70%);
    transform: translateX(-50%);
    transition: width 0.5s ease, opacity 0.5s ease;
    opacity: 0;
    pointer-events: none;
}

input[type="password"]:focus ~ .input-border::after,
input[type="password"]:valid ~ .input-border::after {
    width: 100%;
    left: 0;
}

input[type="password"]:focus ~ .input-glow,
input[type="password"]:valid ~ .input-glow {
    width: 100%;
    opacity: 1;
}

.enter-btn {
    position: relative;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--gold);
    padding: 16px 28px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 5px;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.enter-btn:hover {
    color: var(--dark-bg);
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

.enter-btn .btn-text {
    position: relative;
    z-index: 2;
}

.enter-btn .btn-sweep {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gold);
    z-index: 1;
    transition: left 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.enter-btn:hover .btn-sweep {
    left: 0;
}

.status-message {
    margin-top: 24px;
    font-size: 10px;
    letter-spacing: 2px;
    min-height: 14px;
    opacity: 0;
    transition: opacity 0.4s ease;
    text-transform: uppercase;
}

.status-message.error {
    color: #ff4a4a;
    text-shadow: 0 0 10px rgba(255, 74, 74, 0.3);
    opacity: 1;
}

.status-message.success {
    color: var(--gold);
    text-shadow: 0 0 10px var(--gold-dim);
    opacity: 1;
}

/* VIP Dual Language Note */
.vip-notice {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.03);
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.glass-card:hover .vip-notice {
    opacity: 0.6;
}

.vip-notice p {
    font-size: 8px;
    letter-spacing: 1px;
    line-height: 1.5;
    font-family: 'Inter', sans-serif;
    font-weight: 200;
    color: rgba(234, 234, 234, 0.7); /* Softer silver instead of harsh white */
    text-transform: uppercase;
}

.vip-notice .notice-gold {
    color: var(--gold);
    font-weight: 300;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .vip-logo {
        height: 38px;
        margin-bottom: 12px;
    }
    
    .ambient-light {
        width: 250px;
        height: 250px;
        filter: blur(40px);
    }
    
    .ambient-light.light-2 {
        width: 300px;
        height: 300px;
    }

    .vip-container {
        padding: 16px;
    }
    
    .glass-card {
        padding: 40px 20px 32px;
    }
    
    .brand-title {
        font-size: 20px;
        letter-spacing: 5px;
    }
    
    .brand-subtitle {
        font-size: 8px;
        letter-spacing: 3px;
    }
    
    .subtitle-wrapper .line {
        width: 15px;
    }
    
    .vip-form {
        gap: 24px;
    }
    
    .enter-btn {
        padding: 14px 20px;
        font-size: 10px;
        letter-spacing: 3px;
    }
    
    .vip-notice {
        margin-top: 32px;
    }
    
    .vip-notice p {
        font-size: 8px;
    }
}
