@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;700&display=swap');

body {
    font-family: 'Noto Sans TC', sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.container {
    background-color: #1e1e1e;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

h1 {
    color: #ffffff;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #bbbbbb;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #333;
    border-radius: 4px;
    background-color: #252525;
    color: #e0e0e0;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23bbbbbb%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.4-5.4-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 10px;
    padding-right: 40px; /* Make space for custom arrow */
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #A076F9;
    box-shadow: 0 0 8px rgba(160, 118, 249, 0.5);
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #888;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

button {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    color: #ffffff;
    background: linear-gradient(145deg, #a87efc, #8d67d4);
    border: 1px solid #7f58c7;
    border-bottom: 3px solid #6c47ad;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease-in-out;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

button:hover {
    background: linear-gradient(145deg, #b38dfa, #9d78e5);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    border-bottom-width: 2px;
}

button:disabled {
    background: #4a4a4a;
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
    border: 1px solid #333;
    transform: none;
}

.message-box {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none;
    font-weight: 700;
}

.message-box.success {
    background-color: #28a745;
    color: #ffffff;
}

.message-box.error {
    background-color: #dc3545;
    color: #ffffff;
}

/* --- Admin Panel Specific Styles --- */
.nav-links {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #2a2a2a;
}

.nav-links a {
    background: #333;
    padding: 4px 10px;
    color: #ccc;
    text-decoration: none;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    border: 1px solid #444;
    text-shadow: none;
    position: relative;
    top: 0;
}

.nav-links a:hover {
    background: #454545;
    color: white;
    transform: translateY(-1px);
}

.nav-links a:active {
    top: 1px;
    transform: translateY(0);
}

.nav-links a.active {
    color: white;
    background-color: #A076F9;
    border-color: #b38dfa;
    text-shadow: 0 0 5px rgba(160, 118, 249, 0.3);
}

.nav-links a.logout {
    margin-left: auto;
    background-color: #6d1a1a;
    border-color: #8b2222;
}

.nav-links a.logout:hover {
    background-color: #8b2222;
    color: white;
}

.lang-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
}

.lang-switcher a {
    background-color: #333;
    color: #ccc;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #444;
    font-size: 14px;
    transition: all 0.2s ease-in-out;
}

.lang-switcher a:hover {
    background-color: #454545;
    color: white;
}

.lang-switcher a.active {
    background-color: #A076F9;
    color: white;
    border-color: #b38dfa;
    box-shadow: 0 0 8px rgba(160, 118, 249, 0.3);
} 