/**
 * USP UIP (auth.twots.top) - 核心版面排版與重設 (Core CSS)
 * 適配 電腦、手機、平板 任何介面 (RWD)
 */

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
    background-color: var(--uip-bg-primary);
    color: var(--uip-text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
    transition: background-color 0.25s ease, color 0.25s ease;
}

/* 頂部導航列 */
.uip-header {
    background-color: var(--uip-bg-primary);
    border-bottom: 1px solid var(--uip-border-color);
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.uip-brand-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.uip-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
    border-radius: var(--uip-radius-sm);
}

.uip-brand-text {
    display: flex;
    flex-direction: column;
}

.uip-brand-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--uip-text-primary);
}

.uip-brand-tagline {
    font-size: 0.75rem;
    color: var(--uip-text-secondary);
}

.uip-nav-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* 主體內容容器 */
.uip-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    background-color: var(--uip-bg-secondary);
}

.uip-container {
    width: 100%;
    max-width: 480px;
}

.uip-container-wide {
    max-width: 840px;
}

/* 頁尾資訊 */
.uip-footer {
    background-color: var(--uip-bg-primary);
    border-top: 1px solid var(--uip-border-color);
    padding: 1.25rem 1rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--uip-text-secondary);
}

.uip-footer-links {
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    list-style: none;
}

.uip-footer-links a {
    color: var(--uip-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.uip-footer-links a:hover {
    color: var(--uip-primary);
}

/* 響應式適配 (平板與行動裝置) */
@media (max-width: 768px) {
    .uip-header {
        padding: 0.6rem 1rem;
    }
    
    .uip-brand-title {
        font-size: 1rem;
    }

    .uip-brand-tagline {
        display: none;
    }

    .uip-main {
        padding: 1rem 0.5rem;
    }
}

