/* 全局背景 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans TC', sans-serif;
    background-color: #0F0F0F;
    /* 極深灰背景 */
    color: #fff;
    height: 100vh;
    overflow: hidden;
}

/* 登入容器 - 絕對置中 */
.login-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0F0F0F;
    /* 與 Body 一致 */
    z-index: 1000;
}

/* 登入卡片 */
.login-box {
    background: #1A1A1A;
    /* 稍微亮一點的深灰 */
    padding: 40px;
    border-radius: 12px;
    width: 320px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    /* 微弱邊框 */
}

/* 品牌區域 */
.brand-header {
    margin-bottom: 30px;
}

.logo-icon {
    font-size: 2rem;
    margin-bottom: 5px;
}

.brand-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: #FF9800;
    /* 兔兔橘 */
    display: inline-block;
    vertical-align: middle;
}

.logo-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
    margin-bottom: 0;
}

.brand-subtitle {
    color: #666;
    font-size: 0.75rem;
    margin-top: 5px;
    font-weight: 400;
}

/* 表單區域 */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.input-label {
    color: #888;
    font-size: 0.75rem;
    margin-bottom: -10px;
    margin-left: 2px;
}

input[type="password"] {
    background: #252525;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 12px 15px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s;
    width: 100%;
    box-sizing: border-box;
    /* 確保 padding 不會撐大寬度 */
}

input[type="password"]:focus {
    border-color: #555;
    background: #2A2A2A;
}

input[type="password"]::placeholder {
    color: #555;
}

button#loginBtn {
    background: #FF9800;
    /* 亮橘色 */
    color: #000;
    /* 黑色文字 */
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    margin-top: 5px;
}

button#loginBtn:hover {
    background: #FFAC33;
    /* 懸停變亮 */
    transform: translateY(-1px);
}

button#loginBtn:active {
    transform: translateY(0);
}

button#loginBtn:disabled {
    background: #555;
    color: #888;
    cursor: not-allowed;
}

/* 底部連結 */
.back-link {
    display: block;
    margin-top: 25px;
    color: #666;
    font-size: 0.75rem;
    text-decoration: none;
    transition: color 0.2s;
}

.back-link:hover {
    color: #999;
}

/* 錯誤訊息 */
.error-msg {
    color: #FF5252;
    font-size: 0.8rem;
    margin-top: 15px;
    min-height: 20px;
}

/* 震動特效 */
.shake {
    animation: shake 0.5s;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}