* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Chiron Sung HK", serif;
}

body {
    background: #f4efe8;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 背景光暈 */
.background {
    width: 430px;
    height: 520px;
    position: absolute;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
    z-index: -1;
}

.shape {
    height: 200px;
    width: 200px;
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
}

.shape:first-child {
    background: #c8b8a8;
    left: -80px;
    top: -80px;
}

.shape:last-child {
    background: #e0c6b0;
    right: -50px;
    bottom: -80px;
}

/* 主容器 */
.form-container {
    width: 380px;
    padding: 20px 30px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(180, 170, 160, 0.3);
    box-shadow: 0 0 40px rgba(120, 110, 98, 0.2);
    position: relative;  /* 為了放關閉按鈕 */
}

/* 表單顯示動畫（保留） */
.form {
    animation: fadeSlide 0.4s ease;
}

@keyframes fadeSlide {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

form h3 {
    text-align: center;
    font-size: 26px;
    margin-bottom: 8px;
    color: #6c584c;
}

.logo-title {
    text-align: center;
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: #7b6a57;
}

/* 標籤 */
label {
    display: block;
    margin-top: 15px;
    color: #5b4f45;
    font-size: 14px;
}

/* 輸入欄位 & 下拉選單 一致風格 */
input,
select {
    width: 100%;
    height: 46px;
    margin-top: 5px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(150, 140, 130, 0.35);
    background: rgba(255, 255, 255, 0.55);
    color: #705c53;
    font-size: 15px;
}

input:focus,
select:focus {
    outline: none;
    border-color: #b19072;
    box-shadow: 0 0 0 2px rgba(177, 144, 114, 0.25);
}

/* 讓 select 的預設箭頭不那麼醜（簡單處理即可） */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #705c53 60%),
                      linear-gradient(135deg, #705c53 40%, transparent 50%);
    background-position: calc(100% - 16px) 18px, calc(100% - 11px) 18px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

/* 按鈕 */
button[type="submit"] {
    width: 100%;
    margin-top: 25px;
    background: #7b6a57;
    color: white;
    border: none;
    padding: 12px 0;
    font-size: 17px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease,
                box-shadow 0.1s ease;
}

button[type="submit"]:hover {
    background: #6b5b4c;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(123, 106, 87, 0.35);
}

/* ═════ 關閉按鈕（右上角） ═════ */
.close-btn {
    position: absolute;
    top: -12px;           /* 往上浮出外框 */
    right: -12px;         /* 往右浮出外框 */
    font-size: 28px;
    color: #7b6a57;
    cursor: pointer;
    font-weight: bold;
    z-index: 999;
    background: rgba(255,255,255,0.8);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(150,140,130,0.35);
    transition: 0.25s;
}

.close-btn:hover {
    background: rgba(255,255,255,1);
    color: #5e4f44;
}
