/* 登入頁面 - 統一背景設計 */

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

:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #38bdf8;
    --bg-dark: #0f172a;
    --bg-card: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --text-white: #f8fafc;
    --border-color: #e2e8f0;
}

body {
    font-family: 'Inter', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0c4a6e 100%);
    position: relative;
    overflow-x: hidden;
}

/* 背景裝飾 */
body::before {
    content: '';
    position: fixed;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 60%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.06) 0%, transparent 60%);
    bottom: -150px;
    left: -100px;
    border-radius: 50%;
    pointer-events: none;
}

.login-page {
    display: flex;
    min-height: 100vh;
    padding: 40px;
    gap: 80px;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* ===== 左側登入卡片 ===== */
.login-section {
    flex: 0 0 auto;
}

.login-card {
    width: 420px;
    background: var(--bg-card);
    border-radius: 28px;
    padding: 56px 48px;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.05),
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: cardFloat 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.35);
}

.logo-icon {
    font-size: 36px;
    color: white;
}

.login-header h1 {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
}

.login-body {
    margin-bottom: 32px;
}

.error-message {
    background: #fef2f2;
    color: #dc2626;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    border: 1px solid #fecaca;
}

.google-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    padding: 16px 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 12px;
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.google-login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.5);
}

.google-login-btn .google-icon {
    background: white;
    padding: 4px;
    border-radius: 4px;
}

.login-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.login-footer p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== 右側展示區域 ===== */
.showcase-section {
    flex: 0 0 auto;
    width: 520px;
    padding: 20px;
}

.showcase-content {
    text-align: left;
}

.hero-title {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.25;
    margin-bottom: 8px;
    letter-spacing: -1px;
    animation: slideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-title.highlight {
    color: var(--primary-light);
    margin-bottom: 24px;
    animation: slideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-desc {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 1.05rem;
    color: rgba(248, 250, 252, 0.6);
    line-height: 1.8;
    margin-bottom: 48px;
    font-weight: 400;
    animation: slideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

/* 功能卡片 - 垂直排列 */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    animation: slideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.feature-item:nth-child(1) { animation-delay: 0.3s; }
.feature-item:nth-child(2) { animation-delay: 0.4s; }
.feature-item:nth-child(3) { animation-delay: 0.5s; }

.feature-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(14, 165, 233, 0.3);
    transform: translateX(8px);
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3);
}

.feature-icon i {
    font-size: 20px;
    color: white;
}

.feature-item span {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 1rem;
    color: var(--text-white);
    font-weight: 500;
}

/* ===== 動畫 ===== */
@keyframes cardFloat {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== 響應式設計 ===== */

/* 平板橫向 */
@media (max-width: 1100px) {
    .login-page {
        gap: 50px;
    }

    .login-card {
        width: 380px;
        padding: 44px 36px;
    }

    .showcase-section {
        width: 420px;
    }

    .hero-title {
        font-size: 2.4rem;
    }
}

/* 平板直向 */
@media (max-width: 900px) {
    body::before,
    body::after {
        display: none;
    }

    .login-page {
        flex-direction: column;
        padding: 24px 20px;
        gap: 24px;
        justify-content: center;
    }

    .login-card {
        width: 100%;
        max-width: 400px;
        padding: 40px 32px;
    }

    .showcase-section {
        width: 100%;
        max-width: 400px;
        padding: 0;
    }

    .showcase-content {
        text-align: center;
    }

    .hero-title {
        font-size: 1.6rem;
        letter-spacing: -0.5px;
    }

    .hero-desc {
        display: none;
    }

    .features-list {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
    }

    .feature-item {
        flex-direction: column;
        padding: 14px 10px;
        gap: 8px;
        flex: 1;
        max-width: 110px;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .feature-icon i {
        font-size: 16px;
    }

    .feature-item span {
        font-size: 0.75rem;
    }

    .feature-item:hover {
        transform: none;
    }
}

/* 手機 */
@media (max-width: 600px) {
    .login-page {
        padding: 20px;
        gap: 20px;
        justify-content: center;
    }

    .login-card {
        padding: 36px 28px;
        border-radius: 20px;
        max-width: 100%;
    }

    .logo-container {
        width: 68px;
        height: 68px;
        border-radius: 16px;
    }

    .logo-icon {
        font-size: 30px;
    }

    .login-header {
        margin-bottom: 32px;
    }

    .login-header h1 {
        font-size: 1.4rem;
    }

    .login-subtitle {
        font-size: 0.65rem;
        letter-spacing: 2px;
    }

    .login-body {
        margin-bottom: 28px;
    }

    .google-login-btn {
        padding: 16px 24px;
        font-size: 0.95rem;
        border-radius: 12px;
        gap: 12px;
    }

    .login-footer {
        padding-top: 20px;
    }

    .login-footer p {
        font-size: 0.7rem;
    }

    /* 手機版隱藏展示區 */
    .showcase-section {
        display: none;
    }
}
