:root { --p: #d4a574; --tech: #00f2ff; --bg: #050505; --glass: rgba(255,255,255,0.03); }
* { box-sizing: border-box; }
body.login-page { background: var(--bg); margin: 0; overflow-x: hidden; overflow-y: auto; font-family: 'Noto Sans TC', sans-serif; display: flex; align-items: center; justify-content: center; min-height: 100vh; min-height: 100dvh; padding: 24px; }
#login-canvas { position: fixed; top: 0; left: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.login-card { position: relative; z-index: 10; width: min(100%, 380px); padding: 40px; background: var(--glass); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.1); border-radius: 30px; box-shadow: 0 25px 50px rgba(0,0,0,0.5); text-align: center; margin: 0 auto; }
.brand-icon { color: var(--p); margin-bottom: 15px; }
.login-card h2 { background: linear-gradient(135deg, #fff 0%, var(--p) 50%, #b88a5a 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 800; letter-spacing: 5px; margin-bottom: 5px; filter: drop-shadow(0 2px 5px rgba(212,165,116,0.3)); }
.login-card h2 i { -webkit-text-fill-color: var(--p); margin-right: 15px; }
.login-card p { color: var(--p); font-size: 12px; letter-spacing: 2px; margin-bottom: 40px; opacity: 0.8; }
.form-group { margin-bottom: 25px; text-align: left; }
.form-group label { display: block; font-size: 11px; color: var(--p); text-transform: uppercase; margin-bottom: 10px; font-weight: 700; letter-spacing: 1px; }
.form-control { width: 100%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 12px; padding: 12px 15px; color: var(--p) !important; font-size: 16px; transition: 0.3s; outline: none; caret-color: #fff; font-weight: 700; display: block; }
.form-control::placeholder { color: rgba(255,255,255,0.3); font-weight: 400; }
.form-control:focus { border-color: var(--p); background: rgba(255,255,255,0.1); box-shadow: 0 0 15px rgba(212,165,116,0.3); }
.btn-premium { width: 100%; padding: 14px; background: linear-gradient(135deg, #d4a574 0%, #b88a5a 100%); border: none; border-radius: 12px; color: #1a1a1a; font-weight: 700; cursor: pointer; transition: 0.4s; letter-spacing: 2px; text-transform: uppercase; margin: 10px auto 0; display: block; }
.btn-premium:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(212,165,116,0.4); filter: brightness(1.1); }
#login-error { color: #ff4d4d; font-size: 13px; margin-bottom: 15px; background: rgba(255,77,77,0.1); padding: 8px; border-radius: 8px; border: 1px solid rgba(255,77,77,0.2); }
#login-error.d-none { display: none; }

@media (max-width: 575.98px) {
    body.login-page {
        align-items: flex-start;
        padding: max(18px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
    }
    .login-card {
        margin-top: clamp(18px, 8vh, 76px);
        padding: 30px 22px 24px;
        border-radius: 24px;
        box-shadow: 0 18px 42px rgba(0,0,0,0.46);
    }
    .login-card h2 {
        font-size: clamp(1.45rem, 8vw, 2rem);
        line-height: 1.25;
        letter-spacing: 2px;
        margin-top: 0;
    }
    .login-card h2 i {
        margin-right: 8px;
    }
    .login-card p {
        margin-bottom: 28px;
        letter-spacing: 1px;
    }
    .form-group {
        margin-bottom: 20px;
    }
    .form-control {
        min-height: 52px;
        border-radius: 14px;
        font-size: 16px;
    }
    .btn-premium {
        min-height: 52px;
        border-radius: 14px;
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .login-card {
        padding: 26px 18px 22px;
    }
    .login-card h2 {
        letter-spacing: 1px;
    }
}
