/* login.css — 登入頁專用樣式（從 login.html 抽離） */
body { 
    margin: 0; 
    background-color: #f4f4f4; 
    font-family: "Microsoft JhengHei", sans-serif; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.auth-container { 
    width: 100%; 
    max-width: 420px; 
    background: #C5B496; 
    padding: 30px; 
    border-radius: 16px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.15); 
    box-sizing: border-box;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 頁籤樣式 */
.auth-tabs { 
    display: flex; 
    margin-bottom: 25px; 
    border-bottom: 2px solid #8C7A5B; 
    background: rgba(255,255,255,0.1);
    border-radius: 8px 8px 0 0;
}
.tab { 
    flex: 1; 
    text-align: center; 
    padding: 14px; 
    cursor: pointer; 
    font-weight: bold; 
    color: #5d2e0d; 
    transition: all 0.3s ease; 
}
.tab.active { 
    background: #8C7A5B; 
    color: white; 
}

/* 表單樣式 */
h3 { color: #4A3C2C; margin-top: 0; text-align: center; margin-bottom: 20px; }
label { display: block; margin-bottom: 5px; font-size: 0.9rem; color: #5d2e0d; font-weight: bold; }
input { 
    width: 100%; 
    padding: 14px; 
    margin-bottom: 15px; 
    border: 1px solid #8C7A5B; 
    border-radius: 8px; 
    box-sizing: border-box; 
    background: #D9CEB2; 
    font-size: 16px; /* 防止手機瀏覽器自動縮放 */
}
input:focus { outline: none; border-color: #8b4513; box-shadow: 0 0 8px rgba(139, 69, 19, 0.2); }

.auth-btn { 
    width: 100%; 
    padding: 15px; 
    background: #8b4513; 
    color: white; 
    border: none; 
    border-radius: 8px; 
    font-weight: bold; 
    cursor: pointer; 
    margin-top: 10px; 
    font-size: 1.1rem; 
    transition: background 0.3s; 
}
.auth-btn:hover { background-color: #5d2e0d; }

/* 忘記密碼 */
.forgot-password-wrap { text-align: right; margin-top: -10px; margin-bottom: 20px; }
.forgot-link { font-size: 0.85rem; color: #5d2e0d; text-decoration: none; cursor: pointer; }
.forgot-link:hover { text-decoration: underline; color: #8b4513; }

/* 第三方登入樣式 */
.social-auth { margin-top: 30px; border-top: 1px dashed #8C7A5B; padding-top: 20px; text-align: center; }
.social-btn { 
    width: 100%; 
    padding: 12px; 
    border: none; 
    border-radius: 8px; 
    cursor: pointer; 
    font-weight: bold; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; 
    margin-bottom: 12px; 
    font-size: 1rem;
    transition: transform 0.2s;
}
.social-btn:active { transform: scale(0.98); }
.line-btn { background: #00B900; color: white; }
.fb-btn { background: #1877F2; color: white; }

.footer-text { text-align: center; margin-top: 20px; font-size: 0.9rem; color: #4A3C2C; }
.footer-text a { color: #8b4513; text-decoration: none; font-weight: bold; }

/* 手機版微調 */
@media (max-width: 480px) {
    .auth-container { padding: 20px; }
    .auth-btn { padding: 12px; font-size: 1rem; }
}

/* 登入卡品牌標題 */
.auth-brand {
    text-align: center;
    font-family: var(--font-brush, "Kaiti", serif);
    font-size: 1.9rem;
    color: var(--leather, #6b3410);
    letter-spacing: 1px;
    margin-bottom: 18px;
}