/* 全域樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
}

/* 語言切換器 */
.locale-switcher {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 12px;
    cursor: pointer;
}

.locale-switcher:focus {
    outline: none;
    border-color: #4a90d9;
}

.locale-switcher-header {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 12px;
    cursor: pointer;
}

.locale-switcher-header:focus {
    outline: none;
    border-color: #4a90d9;
}

/* 表單樣式 */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: bold;
    font-size: 14px;
}

.form-group input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #4a90d9;
}

.coords-display {
    padding: 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
    font-family: monospace;
}

/* 按鈕 */
.btn-primary {
    padding: 12px;
    background-color: #4a90d9;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #357abd;
}

.btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #4a90d9;
    border-radius: 4px;
    color: #4a90d9;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #f0f7ff;
}

.btn-link {
    background: none;
    border: none;
    color: #4a90d9;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
    display: block;
    width: 100%;
    text-align: center;
}

.btn-link:hover {
    text-decoration: underline;
}

/* 訊息 */
.auth-message {
    text-align: center;
    font-size: 14px;
    min-height: 20px;
}

.auth-message.error {
    color: #e74c3c;
}

.auth-message.success {
    color: #27ae60;
}

/* 空狀態 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

/* 提示文字 */
.hint {
    font-weight: normal;
    color: #999;
    font-size: 14px;
}

/* 響應式 - 共用 */
@media (max-width: 480px) {
    .locale-switcher {
        top: 10px;
        right: 10px;
    }
}
