/* ============================================================
   style.css — 共用樣式（取代 Tailwind CDN）
   ============================================================ */

/* ---------- Reset / Base ---------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;800;900&family=Noto+Sans+TC:wght@400;500;700;900&display=swap');

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

body {
    font-family: 'Noto Sans TC', sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }

/* ---------- Utility: hidden (JS toggle) ---------- */
.hidden { display: none !important; }

/* ============================================================
   Layout helpers
   ============================================================ */
.page-center {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
}
@media (min-width: 768px) {
    .page-center { padding: 2rem; }
}

/* Pull-Star.html 專用：右側無 padding，讓按鈕頂到邊界 */
.page-center-landing {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0 1rem 1rem;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
}
@media (min-width: 768px) {
    .page-center-landing { padding: 2rem 0 2rem 2rem; }
}

/* ============================================================
   Background variants
   ============================================================ */
.bg-landing {
    background: linear-gradient(135deg, #5f9ea0 0%, #a8c3bc 30%, #e6e5a3 60%, #83929f 100%);
    background-image: url('red.png');
    background-size: cover;
    background-position: 20% center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.bg-gamereport {
    background: linear-gradient(135deg, #5f9ea0 0%, #a8c3bc 30%, #e6e5a3 60%, #83929f 100%);
    background-image: url('Pullstar_gamereport.png');
    background-size: cover;
    background-position: 30% center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.bg-ticketmarket {
    background: linear-gradient(135deg, #5f9ea0 0%, #a8c3bc 30%, #e6e5a3 60%, #83929f 100%);
    background-image: url('Pullstar_ticketmarket.png');
    background-size: cover;
    background-position: 30% center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* ============================================================
   Logo area (fixed corner)
   ============================================================ */
.logo-area {
    position: fixed;
    top: 1rem;
    z-index: 50;
    display: flex;
    align-items: center;
}
.logo-area--right { right: 1rem; }
.logo-area--left  { left: 1rem;  }
@media (min-width: 768px) {
    .logo-area--right { top: 1.5rem; right: 1.5rem; }
    .logo-area--left  { top: 1.5rem; left:  1.5rem; }
}

.logo-img {
    height: 2rem;
    width: auto;
    object-fit: contain;
}
@media (min-width: 768px) {
    .logo-img { height: 3rem; }
}

/* Logo placeholder card (fallback when image missing).
   Initially hidden; JS removes .hidden when image fails to load. */
.logo-placeholder {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1e293b;
    font-weight: 700;
    font-size: 0.875rem;
}
@media (min-width: 768px) {
    .logo-placeholder { font-size: 1rem; }
}
.logo-placeholder svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #0f766e;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.5; }
}

/* ============================================================
   Landing page — header & buttons
   ============================================================ */
.landing-header {
    width: 100%;
    padding-top: 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
    display: flex;
    justify-content: center;
    z-index: 10;
}
@media (min-width: 768px) {
    .landing-header { padding-top: 4rem; }
}

.title-font {
    font-family: 'Montserrat', sans-serif;
}

.landing-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: #000;
    text-align: center;
    user-select: none;
    line-height: 1;
}
@media (min-width: 768px) {
    .landing-title { font-size: 120px; }
}

.landing-buttons {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-end;
    justify-content: center;
    padding: 5rem 0;
    z-index: 10;
    user-select: none;
}
@media (min-width: 768px) {
    .landing-buttons { gap: 2.5rem; }
}

/* Shared landing button base */
.landing-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #000;
    font-weight: 700;
    font-size: 1.5rem;
    padding: 1.5rem 1rem 1.5rem 1.5rem;
    border-radius: 9999px 0 0 9999px;  /* rounded-l-full rounded-r-none */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.landing-btn:hover {
    transform: translateX(-12px);
    box-shadow: -12px 12px 25px rgba(0, 0, 0, 0.12);
}
@media (min-width: 640px) {
    .landing-btn {
        font-size: 1.875rem;
        padding-left: 2.5rem;
        padding-right: 1.5rem;
    }
}
@media (min-width: 768px) {
    .landing-btn {
        font-size: 2.25rem;
        padding: 2rem 1.5rem 2rem 4rem;
    }
}

.landing-btn--ticket {
    background-color: #ffd162;
    width: 90%;
}
@media (min-width: 640px)  { .landing-btn--ticket { width: 60%; } }
@media (min-width: 768px)  { .landing-btn--ticket { width: 50%; } }
@media (min-width: 1024px) { .landing-btn--ticket { width: 45%; } }

.landing-btn--mgmt {
    background-color: #bbefef;
    width: 58%;
}
@media (min-width: 640px)  { .landing-btn--mgmt { width: 50%; } }
@media (min-width: 768px)  { .landing-btn--mgmt { width: 40%; } }
@media (min-width: 1024px) { .landing-btn--mgmt { width: 35%; } }

.landing-btn .btn-label { letter-spacing: 0.05em; }
.landing-btn .btn-label br { display: block; }
@media (min-width: 640px) {
    .landing-btn .btn-label br { display: none; }
}

/* Arrow icon inside landing buttons */
.landing-btn .arrow-icon {
    width: 2rem;
    height: 2rem;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateX(1rem);
    flex-shrink: 0;
}
@media (min-width: 768px) {
    .landing-btn .arrow-icon { width: 2.5rem; height: 2.5rem; }
}
.landing-btn:hover .arrow-icon {
    opacity: 1;
    transform: translateX(0);
}

.landing-footer {
    width: 100%;
    padding-bottom: 3rem;
    z-index: 10;
}

/* ============================================================
   Login page — Brand titles
   ============================================================ */
.brand-area {
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
@media (min-width: 768px) {
    .brand-area { gap: 1rem; }
}

.brand-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(50px, 12vw, 90px);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 1;
    filter: drop-shadow(0 4px 3px rgba(0,0,0,0.07)) drop-shadow(0 2px 2px rgba(0,0,0,0.06));
}

.brand-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(24px, 5vw, 50px);
    font-weight: 300;
    letter-spacing: 0.05em;
    line-height: 1;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.05));
}

/* Color variants */
.color-gamereport  { color: #004e7a; }
.color-gamereport-95 { color: rgba(0, 78, 122, 0.95); }
.color-ticketmarket { color: #7a6200; }
.color-ticketmarket-95 { color: rgba(122, 98, 0, 0.95); }

/* ============================================================
   Login card container
   ============================================================ */
.login-container {
    width: 100%;
    max-width: 28rem;  /* max-w-md */
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 3rem auto;
    align-items: center;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.login-card {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    padding: 1.5rem;
    transition: all 0.3s ease;
}
.login-card:hover {
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.3);
}
@media (min-width: 640px) { .login-card { padding: 2rem; } }
@media (min-width: 768px) { .login-card { padding: 2.5rem; } }

/* ============================================================
   Login form elements
   ============================================================ */
.login-heading {
    text-align: center;
    margin-bottom: 2rem;
}

.login-heading h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: 0.05em;
}
@media (min-width: 768px) {
    .login-heading h1 { font-size: 1.875rem; }
}

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

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.25rem;
}
@media (min-width: 768px) {
    .form-label { font-size: 0.875rem; }
}

.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 0; bottom: 0; left: 0;
    display: flex;
    align-items: center;
    padding-left: 0.75rem;
}
.input-icon svg {
    height: 1.25rem;
    width: 1.25rem;
    color: #64748b;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 0.75rem;
    color: #1e293b;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s ease;
}
.form-input::placeholder { color: #94a3b8; }
.form-input:focus {
    box-shadow: 0 0 0 2px rgba(20,184,166,0.5);
    border-color: transparent;
}

.form-input--password {
    padding-right: 3rem;
}

/* Eye toggle button */
.toggle-password {
    position: absolute;
    top: 0; bottom: 0; right: 0;
    display: flex;
    align-items: center;
    padding-right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    transition: color 0.2s;
}
.toggle-password:hover { color: #334155; }
.toggle-password svg {
    height: 1.25rem;
    width: 1.25rem;
}

/* Remember me */
.remember-row {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}
.remember-row input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: #0d9488;
    border-radius: 0.25rem;
    border: 1px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.5);
}
.remember-row label {
    margin-left: 0.5rem;
    font-size: 0.75rem;
    color: #334155;
}
@media (min-width: 768px) {
    .remember-row label { font-size: 0.875rem; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn-primary {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-weight: 700;
    color: #fff;
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    outline: none;
}
.btn-primary:active {
    transform: scale(0.98);
}
.btn-primary:focus-visible {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #14b8a6;
}

.btn-gamereport {
    background-color: #004e7a;
}
.btn-gamereport:hover { background-color: #246c94; }

.btn-ticketmarket {
    background-color: #7a6200;
}
.btn-ticketmarket:hover { background-color: #c8b256; }

/* ============================================================
   Toast notification
   ============================================================ */
.toast {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(15,23,42,0.95);
    color: #fff;
    font-size: 0.875rem;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    border: 1px solid rgba(51,65,85,0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    /* Initial hidden state */
    transform: translateY(5rem);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}
.toast.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.toast svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #34d399;
    flex-shrink: 0;
}

/* ============================================================
   SVG icon sizes (shared)
   ============================================================ */
.icon-sm  { width: 1.25rem; height: 1.25rem; }
.icon-md  { width: 1.5rem;  height: 1.5rem;  }
