/* 登入頁面樣式 — Group 6 淺嫩綠 */

main {
    background: var(--bg-group-6);
}

body {
    color: var(--text-on-light);
}

.google-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 0.8rem 1.5rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.google-login-btn:hover {
    background: #f8f8f8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.google-login-btn img {
    width: 24px;
    height: 24px;
}

/* App 內建瀏覽器提示（login.js 偵測到 LINE、Facebook、Instagram… 才顯示）。
   配色沿用 ModalDraft 的琥珀警示色（common.css .modal-draft-banner--warning） */
.inapp-notice {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid #f0d089;
    border-left: 4px solid #d98e04;
    border-radius: 6px;
    background-color: #fdf4e3;
    color: #8a5a00;
    font-size: 0.95rem;
    line-height: 1.6;
}

.inapp-notice p {
    margin: 0 0 0.6rem;
}

.inapp-notice-title {
    font-weight: 700;
}

.inapp-notice-copy {
    display: flex;
    gap: 0.5rem;
}

/* 16px：iOS 對小於 16px 的輸入框在聚焦時會自動放大畫面 */
.inapp-notice-copy input {
    flex: 1;
    min-width: 0;
    padding: 0.35rem 0.6rem;
    border: 1px solid #f0d089;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    font-size: 16px;
}

.inapp-notice-copy button {
    flex-shrink: 0;
    padding: 0.35rem 0.9rem;
    border: 1px solid #8a5a00;
    border-radius: 4px;
    background: transparent;
    color: #8a5a00;
    font-family: inherit;
    font-size: 0.9rem;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.inapp-notice-copy button:hover {
    background-color: #8a5a00;
    color: #fff;
}

.inapp-notice-copy button:focus-visible {
    outline: 2px solid #8a5a00;
    outline-offset: 2px;
}

/* 登入頁面左右欄結構 — Group 6 淺嫩綠（背景由 main 套用 var(--bg-group-6) 提供，本容器透明） */
.login-flex-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 130px); /* 扣除header和footer的高度 */
    gap: 2rem;
    padding: 2rem;
    margin-top: 76px; /* header高度 */
}

.login-carousel {
    flex: 0 0 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    min-width: 200px;
    max-width: 320px;
    min-height: 300px;
    padding: 0;
    margin-right: 1rem;
}

.login-carousel img {
    width: 100%;
    height: auto;
    max-width: 300px;
    max-height: 500px;
    border-radius: 0;
    object-fit: contain;
    background: none;
    margin: 0;
}

.login-right-box {
    flex: 2;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 320px;
    max-width: 800px;
}

.login-description {
    color: #555;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.login-agreement {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 2rem;
    font-size: 1rem;
    color: #333;
    max-height: 230px;
    overflow-y: auto;
}

.login-agreement h3 {
    font-size: 1.2rem;
    margin-bottom: 0.7rem;
    color: #666;
}

.login-agreement ol {
    padding-left: 1.2rem;
}

.login-agreement li {
    margin-bottom: 0.7rem;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .login-flex-container {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
        padding: 2.5rem 0.5rem 1.5rem 0.5rem;
        margin-top: 76px;
    }
    
    .login-carousel {
        max-width: 100vw;
        min-width: 0;
        min-height: 180px;
        margin: 0 auto;
        justify-content: center;
    }
    
    .login-carousel img {
        max-width: 98vw;
        max-height: 320px;
        width: 100%;
        height: auto;
    }
    
    .login-right-box {
        max-width: 98vw;
        min-width: 0;
        padding: 1.2rem 1rem;
        margin: 0.5rem 0.5rem 1.5rem 0.5rem;
        box-sizing: border-box;
    }
    
    .login-agreement {
        max-height: 120px;
        font-size: 0.95rem;
    }
} 