/* ============================================================
   AUTH.CSS — 登入 / 註冊 頁
   ============================================================ */

.auth-page {
    min-height: 100vh;
    display: grid; grid-template-columns: 1fr 1fr;
    padding-top: var(--nav-h);
}

/* ── LEFT PANEL ── */
.auth-left {
    display: flex; flex-direction: column; justify-content: center;
    padding: 80px;
    position: relative; overflow: hidden;
}
/* Login left: photo with yellow overlay */
.auth-left.dark {
    background: var(--black); /* fallback */
}
.auth-left.dark .auth-left-bg {
    position: absolute; inset: 0;
    background: url('../assets/oregon-sky.jpg') center center / cover no-repeat;
    filter: brightness(0.7);
}
.auth-left.dark .auth-left-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(243,191,13,0.70) 0%, rgba(180,120,0,0.60) 100%);
}
.auth-left.dark .auth-left-content { position: relative; z-index: 1; }
/* Register left: yellow */
.auth-left.yellow { background: var(--y); }
.auth-left.yellow::before {
    content: '';
    position: absolute; top: -80px; right: -80px;
    width: 320px; height: 320px;
    border: 48px solid rgba(0,0,0,0.06); border-radius: 50%;
}
.auth-left.yellow::after {
    content: '';
    position: absolute; bottom: -100px; left: -40px;
    width: 240px; height: 240px;
    border: 32px solid rgba(0,0,0,0.04); border-radius: 50%;
}
.auth-left-tag {
    display: inline-block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
    padding: 5px 16px; border-radius: 100px; margin-bottom: 24px;
}
.dark   .auth-left-tag { background: var(--black); color: var(--y); }
.yellow .auth-left-tag { background: var(--black); color: var(--y); }
.auth-left h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(48px,5vw,72px); font-weight: 600; line-height: 1.1;
    text-transform: uppercase; margin-bottom: 20px;
}
.dark   .auth-left h1 { color: var(--black); }
.yellow .auth-left h1 { color: var(--black); }
.auth-left h1 em { font-style: normal; }
.dark   .auth-left h1 em { color: var(--white); }
.yellow .auth-left h1 em { color: var(--white); }
.auth-left p { font-size: 17px; line-height: 1.8; max-width: 380px; }
.dark   .auth-left p { color: rgba(0,0,0,0.7); }
.yellow .auth-left p { color: rgba(0,0,0,0.6); }

.auth-left-stats { display: flex; flex-direction: column; gap: 20px; margin-top: 48px; }
.auth-stat { display: flex; align-items: center; gap: 16px; }
.auth-stat-icon {
    width: 44px; height: 44px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.dark   .auth-stat-icon { background: rgba(0,0,0,0.15); color: var(--black); }
.yellow .auth-stat-icon { background: rgba(0,0,0,0.1); color: var(--black); }
.auth-stat-text { font-size: 16px; color: rgba(0,0,0,0.7); font-weight: 500; }

/* ── RIGHT PANEL (form) ── */
.auth-right {
    background: var(--white);
    display: flex; align-items: center;
    justify-content: center; padding: 80px;
    border-left: 1px solid #E8E8E8; overflow-y: auto;
}
.auth-card { width: 100%; max-width: 440px; }
.auth-card-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 36px; font-weight: 600; text-transform: uppercase;
    color: var(--black); margin-bottom: 6px;
}
.auth-card-sub { font-size: 16px; color: var(--muted); margin-bottom: 32px; }
.auth-card-sub a { color: var(--black); font-weight: 600; text-decoration: underline; }

/* ── FORM (light) ── */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block; font-size: 16px; font-weight: 600; color: var(--black); margin-bottom: 8px;
}
.form-group label.optional::after { content: ' (選填)'; font-size: 13px; color: var(--muted); font-weight: 400; }
.form-group input {
    width: 100%; padding: 13px 18px; background: var(--off);
    border: 2px solid #E8E8E8; border-radius: 12px;
    font-size: 16px; color: var(--black);
    font-family: 'Noto Sans TC', sans-serif; transition: border-color .2s;
}
.form-group input:focus { outline: none; border-color: var(--y); background: var(--white); }
.form-group input::placeholder { color: #bbb; }
.form-group small { display: block; font-size: 14px; color: var(--muted); margin-top: 5px; }
.form-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.form-check { display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--text); cursor: pointer; }
.form-check input { width: 18px; height: 18px; accent-color: var(--y); }
.form-forgot { font-size: 16px; color: var(--black); font-weight: 600; }
.form-forgot:hover { color: #b8900a; }
.form-agree { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0 24px; }
.form-agree input { width: 18px; height: 18px; accent-color: var(--y); margin-top: 2px; flex-shrink: 0; }
.form-agree span { font-size: 16px; color: var(--text); line-height: 1.6; }
.form-agree a { color: var(--black); font-weight: 600; text-decoration: underline; }
.btn-submit {
    width: 100%; background: var(--y); color: var(--black);
    font-weight: 600; font-size: 17px; padding: 16px;
    border-radius: 12px; border: none; cursor: pointer; transition: all .25s;
    font-family: 'Noto Sans TC', sans-serif;
}
.btn-submit:hover { background: #ffd000; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(243,191,13,0.4); }

/* ── AUTH DIVIDER ── */
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: #E8E8E8; }
.auth-divider span { font-size: 14px; color: var(--muted); }

/* ── SOCIAL ── */
.social-btns { display: flex; flex-direction: column; gap: 12px; }
.btn-social {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 13px; border-radius: 12px; border: 2px solid #E8E8E8;
    background: var(--white); font-size: 16px; font-weight: 600; cursor: pointer;
    transition: all .2s; font-family: 'Noto Sans TC', sans-serif; color: var(--text);
}
.btn-social.google { color: #ea4335; }
.btn-social.google:hover { background: rgba(234,67,53,0.05); border-color: #ea4335; }
.btn-social.line   { color: #06c755; }
.btn-social.line:hover { background: rgba(6,199,85,0.05); border-color: #06c755; }
.auth-footer-link { text-align: center; margin-top: 24px; font-size: 16px; color: var(--muted); }
.auth-footer-link a { color: var(--black); font-weight: 600; text-decoration: underline; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .auth-page  { grid-template-columns: 1fr; }
    .auth-left  { display: none; }
    .auth-right { padding: 80px 40px; border-left: none; }
}
@media (max-width: 640px) {
    .auth-right { padding: 60px 24px; }
}
