/**
 * 登入/註冊頁面樣式 - Auth Page Styles
 * 黑金主題 - Black & Gold Theme
 */

/* ========== 登入頁面主體 ========== */
.login-page {
    background:
        radial-gradient(ellipse at 0% 0%, rgba(212, 165, 32, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(184, 134, 11, 0.06) 0%, transparent 60%),
        linear-gradient(180deg, #0a0806 0%, #12100a 50%, #080604 100%);
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    max-width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* 背景網格紋理 */
.login-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(212, 165, 32, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 165, 32, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* 動態光暈效果 */
.login-page::after {
    content: '';
    position: absolute;
    width: min(40rem, 100vw);
    height: min(40rem, 100vh);
    background: radial-gradient(circle, rgba(212, 165, 32, 0.12) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

/* ========== 登入容器 ========== */
.login-container {
    width: 100%;
    max-width: 26rem;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

/* ========== 登入卡片 ========== */
.login-card {
    background: linear-gradient(165deg, rgba(30, 25, 18, 0.95) 0%, rgba(20, 18, 12, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 8px 25px rgba(184, 134, 11, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 165, 32, 0.2);
}

/* 頂部漸層光條 */
.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4a520, #ffd700, #d4a520, transparent);
    box-shadow: 0 0 20px rgba(212, 165, 32, 0.5);
}

/* 邊框光暈 */
.login-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    padding: 1px;
    background: linear-gradient(135deg, rgba(212, 165, 32, 0.3), transparent 50%, rgba(184, 134, 11, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* 淺色主題卡片 */
.light-theme .login-card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 253, 248, 1) 100%);
    border-color: rgba(184, 134, 11, 0.18);
    box-shadow:
        0 20px 60px rgba(184, 134, 11, 0.1),
        0 8px 25px rgba(0, 0, 0, 0.08);
}

/* ========== 登入標題區域 ========== */
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    height: 4.5rem;
    margin-bottom: 1.25rem;
    filter: drop-shadow(0 4px 8px rgba(184, 134, 11, 0.3));
}

.login-header h1 {
    font-size: 1.875rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffe066 0%, #f5c542 50%, #d4a520 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.05em;
    filter: drop-shadow(0 2px 4px rgba(212, 165, 32, 0.3));
}

.light-theme .login-header h1 {
    background: linear-gradient(135deg, #b8860b 0%, #d4a520 50%, #f5c542 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    color: rgba(220, 200, 160, 0.8);
    font-size: var(--font-size-md);
    letter-spacing: 0.03em;
}

.light-theme .login-header p {
    color: rgba(139, 105, 20, 0.9);
}

/* ========== 表單群組 ========== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: rgba(255, 240, 200, 0.95);
    font-size: var(--font-size-md);
    letter-spacing: 0.02em;
}

.light-theme .form-label {
    color: #1f1f1f;
}

.form-label i {
    margin-right: 0.625rem;
    color: #f5c542;
    width: 1rem;
}

.light-theme .form-label i {
    color: #b8860b;
}

/* ========== 表單輸入 ========== */
.form-input {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border: 1px solid rgba(212, 165, 32, 0.25);
    border-radius: 0.75rem;
    font-size: var(--font-size-lg);
    font-family: inherit;
    transition: all var(--transition-normal);
    background: linear-gradient(165deg, rgba(30, 25, 18, 0.8) 0%, rgba(22, 20, 14, 0.9) 100%);
    color: rgba(255, 255, 255, 0.95);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        0 1px 0 rgba(255, 255, 255, 0.03);
}

.form-input::placeholder {
    color: rgba(200, 180, 140, 0.5);
}

.form-input:focus {
    outline: none;
    border-color: rgba(212, 165, 32, 0.6);
    box-shadow:
        0 0 0 3px rgba(212, 165, 32, 0.15),
        0 0 20px rgba(212, 165, 32, 0.1),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
    background: linear-gradient(165deg, rgba(35, 30, 22, 0.9) 0%, rgba(28, 25, 18, 1) 100%);
}

.form-input.error {
    border-color: rgba(255, 107, 107, 0.7);
    box-shadow:
        0 0 0 3px rgba(255, 107, 107, 0.15),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 淺色主題輸入框 */
.light-theme .form-input {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 253, 248, 1) 100%);
    border-color: rgba(184, 134, 11, 0.22);
    color: #1f1f1f;
    box-shadow:
        0 2px 8px rgba(184, 134, 11, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.light-theme .form-input::placeholder {
    color: rgba(139, 105, 20, 0.5);
}

.light-theme .form-input:focus {
    border-color: rgba(184, 134, 11, 0.5);
    box-shadow:
        0 0 0 3px rgba(184, 134, 11, 0.1),
        0 4px 15px rgba(184, 134, 11, 0.1);
    background: #fff;
}

.light-theme .form-input.error {
    border-color: rgba(255, 107, 107, 0.7);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

/* ========== 密碼輸入容器 ========== */
.password-input-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(212, 165, 32, 0.7);
    cursor: pointer;
    padding: 0.375rem;
    font-size: var(--font-size-lg);
    transition: all var(--transition-normal);
    border-radius: 0.375rem;
}

.password-toggle:hover,
.password-toggle:focus {
    color: #f5c542;
    background: rgba(212, 165, 32, 0.1);
    outline: none;
}

.light-theme .password-toggle {
    color: rgba(184, 134, 11, 0.6);
}

.light-theme .password-toggle:hover,
.light-theme .password-toggle:focus {
    color: #b8860b;
    background: rgba(184, 134, 11, 0.1);
}

/* ========== 複選框容器 ========== */
.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: var(--font-size-md);
    color: rgba(220, 200, 160, 0.9);
    user-select: none;
}

.light-theme .checkbox-container {
    color: #444;
}

.checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: relative;
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    background: linear-gradient(165deg, rgba(30, 25, 18, 0.8) 0%, rgba(22, 20, 14, 0.9) 100%);
    border: 1px solid rgba(212, 165, 32, 0.3);
    border-radius: 0.375rem;
    margin-right: 0.625rem;
    transition: all var(--transition-normal);
}

.light-theme .checkmark {
    background: #fff;
    border-color: rgba(184, 134, 11, 0.3);
}

.checkbox-container input[type="checkbox"]:checked ~ .checkmark {
    background: linear-gradient(135deg, #d4a520 0%, #b8860b 100%);
    border-color: #d4a520;
    box-shadow: 0 2px 8px rgba(212, 165, 32, 0.4);
}

.checkbox-container input[type="checkbox"]:checked ~ .checkmark::after {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: var(--font-size-sm);
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.checkbox-container input[type="checkbox"]:focus ~ .checkmark {
    box-shadow: 0 0 0 3px rgba(212, 165, 32, 0.2);
}

/* ========== 登入按鈕 ========== */
.login-btn {
    width: 100%;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #d4a520 0%, #b8860b 50%, #8b6914 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    font-size: var(--font-size-lg);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow:
        0 4px 15px rgba(184, 134, 11, 0.4),
        0 0 25px rgba(184, 134, 11, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    letter-spacing: 0.05em;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #f5c542 0%, #d4a520 50%, #b8860b 100%);
    transform: translateY(-3px) scale(1.01);
    box-shadow:
        0 8px 25px rgba(184, 134, 11, 0.5),
        0 0 40px rgba(212, 165, 32, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.login-btn:focus {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(212, 165, 32, 0.3),
        0 4px 15px rgba(184, 134, 11, 0.4);
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    background: linear-gradient(135deg, #666 0%, #555 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.login-loading {
    margin-left: 0.625rem;
}

/* ========== 錯誤訊息 ========== */
.error-message {
    color: var(--color-error);
    font-size: var(--font-size-sm);
    margin-top: 0.25rem;
    min-height: var(--font-size-md);
    display: block;
}

.login-error {
    background: linear-gradient(165deg, rgba(255, 107, 107, 0.15) 0%, rgba(255, 107, 107, 0.1) 100%);
    border: 1px solid rgba(255, 107, 107, 0.4);
    color: #ff8a8a;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    margin-top: 1.25rem;
    font-size: var(--font-size-md);
    text-align: center;
    display: none;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.1);
}

.light-theme .login-error {
    background: rgba(255, 107, 107, 0.1);
    color: #dc2626;
}

/* ========== 分隔線（OR） ========== */
.login-divider {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin: 1.25rem 0;
    color: rgba(255, 255, 255, 0.45);
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 165, 32, 0.35), transparent);
}

.login-divider span {
    flex: 0 0 auto;
}

.light-theme .login-divider {
    color: rgba(0, 0, 0, 0.4);
}

.light-theme .login-divider::before,
.light-theme .login-divider::after {
    background: linear-gradient(90deg, transparent, rgba(184, 134, 11, 0.3), transparent);
}

/* ========== Google 登入按鈕容器 ========== */
.google-signin-container {
    display: flex;
    justify-content: center;
    min-height: 44px;
}

/* GIS 內嵌錯誤訊息（沿用 .login-error 樣式，僅微調上方間距） */
#googleLoginError {
    margin-top: 0.875rem;
}

/* ========== 主題切換器 ========== */
.theme-switcher {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 10;
}

.login-card .theme-toggle {
    background: linear-gradient(165deg, rgba(212, 165, 32, 0.15) 0%, rgba(184, 134, 11, 0.1) 100%);
    border: 1px solid rgba(212, 165, 32, 0.3);
    border-radius: 0.625rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffe066;
    cursor: pointer;
    transition: all var(--transition-normal);
    backdrop-filter: blur(8px);
    font-size: 1.1rem;
}

.light-theme .login-card .theme-toggle {
    background: linear-gradient(165deg, rgba(184, 134, 11, 0.1) 0%, rgba(212, 165, 32, 0.05) 100%);
    border-color: rgba(184, 134, 11, 0.25);
    color: #b8860b;
}

.login-card .theme-toggle:hover,
.login-card .theme-toggle:focus {
    background: linear-gradient(165deg, rgba(212, 165, 32, 0.25) 0%, rgba(184, 134, 11, 0.2) 100%);
    border-color: rgba(212, 165, 32, 0.5);
    color: #ffd700;
    outline: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 165, 32, 0.3);
}

.light-theme .login-card .theme-toggle:hover,
.light-theme .login-card .theme-toggle:focus {
    background: linear-gradient(165deg, rgba(184, 134, 11, 0.2) 0%, rgba(212, 165, 32, 0.15) 100%);
    border-color: rgba(184, 134, 11, 0.5);
    color: #8b6914;
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.2);
}

/* ========== 密碼強度指示器 ========== */
.password-strength {
    margin-top: 0.5rem;
    display: none;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.password-strength.show {
    display: block;
    opacity: 1;
}

.strength-requirements {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.requirement-row {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.requirement {
    display: flex;
    align-items: center;
    font-size: var(--font-size-sm);
    color: rgba(255, 140, 140, 0.9);
    transition: color var(--transition-normal);
}

.requirement i {
    margin-right: 0.5rem;
    width: var(--font-size-md);
    font-size: var(--font-size-xs);
}

.requirement.valid {
    color: #4ade80;
}

.light-theme .requirement {
    color: #dc2626;
}

.light-theme .requirement.valid {
    color: #16a34a;
}

/* ========== 驗證碼輸入容器 ========== */
.verification-input-container {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.verification-input {
    flex: 1;
}

.verification-btn {
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, #d4a520 0%, #b8860b 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    font-size: var(--font-size-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    white-space: nowrap;
    min-width: 7.5rem;
    box-shadow: 0 2px 10px rgba(184, 134, 11, 0.3);
}

.verification-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #f5c542 0%, #d4a520 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.4);
}

.verification-btn:disabled {
    background: linear-gradient(135deg, #555 0%, #444 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.verification-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 165, 32, 0.3);
}

/* ========== 驗證狀態訊息 ========== */
.verification-status {
    font-size: var(--font-size-sm);
    margin-top: 0.25rem;
    min-height: var(--font-size-md);
}

.verification-status.success {
    color: #4ade80;
}

.light-theme .verification-status.success {
    color: #16a34a;
}

.verification-status.error {
    color: #ff8a8a;
}

.light-theme .verification-status.error {
    color: #dc2626;
}

/* ========== 登入連結與註冊連結 ========== */
.login-link,
.register-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(212, 165, 32, 0.15);
}

.light-theme .login-link,
.light-theme .register-link {
    border-top-color: rgba(184, 134, 11, 0.15);
}

.login-link p,
.register-link p {
    font-size: var(--font-size-md);
    color: rgba(220, 200, 160, 0.8);
    margin: 0;
}

.light-theme .login-link p,
.light-theme .register-link p {
    color: #666;
}

.login-link a,
.register-link a {
    color: #f5c542;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-normal);
    position: relative;
}

.login-link a::after,
.register-link a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #f5c542, #d4a520);
    transition: width var(--transition-normal);
}

.login-link a:hover::after,
.register-link a:hover::after,
.login-link a:focus::after,
.register-link a:focus::after {
    width: 100%;
}

.login-link a:hover,
.login-link a:focus,
.register-link a:hover,
.register-link a:focus {
    color: #ffe066;
    text-shadow: 0 0 15px rgba(212, 165, 32, 0.5);
}

.light-theme .login-link a,
.light-theme .register-link a {
    color: #b8860b;
}

.light-theme .login-link a:hover,
.light-theme .login-link a:focus,
.light-theme .register-link a:hover,
.light-theme .register-link a:focus {
    color: #8b6914;
    text-shadow: none;
}

/* ========== 淺色主題背景 ========== */
.light-theme.login-page,
.light-theme .login-page {
    background:
        radial-gradient(ellipse at 0% 0%, rgba(184, 134, 11, 0.02) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(212, 165, 32, 0.015) 0%, transparent 50%),
        linear-gradient(180deg, #fefefe 0%, #fcfcfb 50%, #faf9f7 100%);
}

.light-theme.login-page::before,
.light-theme .login-page::before {
    background-image:
        linear-gradient(rgba(184, 134, 11, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(184, 134, 11, 0.015) 1px, transparent 1px);
}

.light-theme.login-page::after,
.light-theme .login-page::after {
    background: radial-gradient(circle, rgba(184, 134, 11, 0.025) 0%, transparent 70%);
}

/* ========== 響應式設計 ========== */
@media (max-width: 30rem) {
    .login-page {
        padding: 1rem;
        align-items: flex-start;
        padding-top: 2rem;
        padding-bottom: 2rem;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .login-container {
        width: 100%;
        max-width: calc(100vw - 2rem);
        margin: 0 auto;
    }

    .login-card {
        padding: 1.75rem 1.5rem;
        border-radius: 1.25rem;
        width: 100%;
    }

    .login-logo {
        height: 3.5rem;
    }

    .login-header h1 {
        font-size: 1.5rem;
    }

    .form-input {
        padding: 0.75rem 1rem;
    }

    .login-btn {
        padding: 0.875rem;
    }

    .verification-input-container {
        flex-direction: row;
        gap: 0.5rem;
    }

    .verification-btn {
        min-width: 5rem;
        padding: 0.75rem 0.875rem;
        font-size: var(--font-size-sm);
    }

    .strength-requirements {
        gap: 0.25rem;
    }

    .requirement-row {
        flex-direction: row;
        gap: 0.5rem;
    }

    .requirement {
        font-size: 0.625rem;
    }

    .theme-switcher {
        top: 1rem;
        right: 1rem;
    }

    .login-card .theme-toggle {
        width: 2rem;
        height: 2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 25rem) {
    .login-page {
        padding: 0.75rem;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .login-container {
        max-width: calc(100vw - 1.5rem);
    }

    .login-card {
        padding: 1.5rem 1.25rem;
        border-radius: 1rem;
    }

    .login-header {
        margin-bottom: 1.5rem;
    }

    .login-logo {
        height: 3rem;
    }

    .login-header h1 {
        font-size: 1.375rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-label {
        font-size: var(--font-size-sm);
    }

    .form-input {
        padding: 0.625rem 0.875rem;
        font-size: var(--font-size-md);
    }

    .login-btn {
        font-size: var(--font-size-md);
        padding: 0.75rem;
    }

    .verification-input-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .verification-btn {
        width: 100%;
        min-width: auto;
    }

    .requirement-row {
        flex-direction: column;
        gap: 0.125rem;
    }
}

/* ========== Gaming Font Family ========== */
.login-page {
    font-family: 'Chakra Petch', sans-serif;
}

.login-header h1 {
    font-family: 'Russo One', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ========== Animated Background Particles ========== */
.particles-container {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 165, 32, 0.6) 0%, rgba(212, 165, 32, 0) 70%);
    animation: floatParticle 20s ease-in-out infinite;
}

.particle--1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
    animation-duration: 25s;
}

.particle--2 {
    width: 200px;
    height: 200px;
    top: 20%;
    right: -50px;
    animation-delay: -5s;
    animation-duration: 20s;
}

.particle--3 {
    width: 150px;
    height: 150px;
    bottom: 10%;
    left: 10%;
    animation-delay: -10s;
    animation-duration: 22s;
}

.particle--4 {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 30%;
    animation-delay: -3s;
    animation-duration: 18s;
}

.particle--5 {
    width: 80px;
    height: 80px;
    bottom: 30%;
    right: 20%;
    animation-delay: -8s;
    animation-duration: 15s;
}

.particle--6 {
    width: 120px;
    height: 120px;
    top: 70%;
    right: 40%;
    animation-delay: -12s;
    animation-duration: 23s;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(30px, -50px) scale(1.1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-20px, 30px) scale(0.9);
        opacity: 0.4;
    }
    75% {
        transform: translate(40px, 20px) scale(1.05);
        opacity: 0.6;
    }
}

.light-theme .particle {
    background: radial-gradient(circle, rgba(184, 134, 11, 0.08) 0%, rgba(184, 134, 11, 0) 70%);
}

/* ========== Decorative Gaming Icons ========== */
.gaming-decorations {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.gaming-icon {
    position: absolute;
    color: rgba(212, 165, 32, 0.08);
    font-size: 4rem;
    animation: floatIcon 15s ease-in-out infinite;
}

.gaming-icon--1 {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
    font-size: 3rem;
}

.gaming-icon--2 {
    top: 25%;
    right: 10%;
    animation-delay: -4s;
    font-size: 4.5rem;
}

.gaming-icon--3 {
    bottom: 20%;
    left: 12%;
    animation-delay: -8s;
    font-size: 3.5rem;
}

.gaming-icon--4 {
    bottom: 30%;
    right: 15%;
    animation-delay: -2s;
    font-size: 2.5rem;
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.08;
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
        opacity: 0.15;
    }
}

.light-theme .gaming-icon {
    color: rgba(184, 134, 11, 0.03);
}

/* ========== Logo Glow Wrapper ========== */
.logo-glow-wrapper {
    display: inline-block;
    position: relative;
    animation: logoGlow 3s ease-in-out infinite;
}

.logo-glow-wrapper::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(212, 165, 32, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes logoGlow {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

@keyframes glowPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.light-theme .logo-glow-wrapper::before {
    background: radial-gradient(circle, rgba(184, 134, 11, 0.06) 0%, transparent 70%);
}

/* ========== Login Subtitle Enhancement ========== */
.login-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-subtitle i {
    color: #f5c542;
    font-size: 0.9em;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.light-theme .login-subtitle i {
    color: #b8860b;
}

/* ========== Button Icon & Shine Effect ========== */
.btn-icon {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.login-btn:hover:not(:disabled) .btn-icon {
    transform: translateX(3px);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: skewX(-25deg);
    transition: left 0.5s ease;
}

.login-btn:hover:not(:disabled) .btn-shine {
    left: 150%;
}

/* ========== Link Icon Styles ========== */
.register-link a i,
.login-link a i {
    margin-right: 0.25rem;
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

.register-link a:hover i,
.login-link a:hover i {
    transform: scale(1.1);
}

/* ========== Enhanced Form Input Focus ========== */
.form-input:focus {
    animation: inputFocusGlow 0.3s ease forwards;
}

@keyframes inputFocusGlow {
    0% {
        box-shadow:
            0 0 0 3px rgba(212, 165, 32, 0),
            inset 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    100% {
        box-shadow:
            0 0 0 3px rgba(212, 165, 32, 0.15),
            0 0 20px rgba(212, 165, 32, 0.1),
            inset 0 2px 4px rgba(0, 0, 0, 0.2);
    }
}

/* ========== Responsive: Hide Decorations on Small Screens ========== */
@media (max-width: 48rem) {
    .gaming-decorations {
        display: none;
    }

    .particle {
        opacity: 0.15;
    }
}

@media (max-width: 30rem) {
    .particles-container {
        display: none;
    }
}

/* ========== Reduced Motion Support ========== */
@media (prefers-reduced-motion: reduce) {
    .particle,
    .gaming-icon,
    .logo-glow-wrapper,
    .logo-glow-wrapper::before,
    .login-subtitle i,
    .btn-shine,
    .login-page::after {
        animation: none;
    }

    .login-btn:hover:not(:disabled) .btn-shine {
        display: none;
    }
}
