body {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

h1 {
    font-size: 80px;
    text-align: center;
    font-weight: bold;
    background-image: linear-gradient(to right, #f49360, #fbdcaf, #f49360);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: gradient-animation 3s ease-in-out infinite;
}

@keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

p{
    font-size: 20px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.logintxt{
    font-size: 30px;
    font-weight: bold;
    margin-top: 50px;
    margin-bottom: 20px;
    color: #f49360;
}

.forgetpsd{
    font-size: 16px;
    margin-top: 10px;
    color:#dccbb4;
}

.newusers{
    font-size: 16px;
    margin-top: 10px;
    color:#e5a67c;
}

footer{
    color: dimgray;
    width: 100%;
}

.copyright {
    font-size: 12px;
    text-align: center;
    margin: 0;
    padding: 15px 0;
}

.login-box{
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 登入框的輸入框樣式 - 統一處理 */
.login-box input {
    width: 250px;
    height: 40px;
    font-size: 16px;
    padding: 0 10px;
    border-radius: 5px;
    border: 1px solid #f49360;
    text-align: center;
    margin-bottom: 10px;
}

.btnlogin {
    width: 100px;
    height: 42px;
    font-size: 16px;
    border-radius: 50px;
    color: #3A3A3A;
    border: 1px solid #dccbb4;
    background-color: #fbdcaf;
    cursor: pointer;
}

.btnlogin:hover{
    background-color: #f49360;
    color: #ffffff;
}

/* 彈跳視窗背景遮罩 */
.modal {
    display: none;  /* 預設隱藏 */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}

/* 當彈窗顯示時，使用 flex 置中 */
.modal[style*="display: flex"] {
    justify-content: center;
    align-items: center;
}

/* 卡片 */
.modal-content {
    background: #fff;
    padding: 40px 30px;
    width: 360px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    position: relative;
    text-align: center;
}

/* 關閉按鈕 */
.close {
    position: absolute;
    right: 15px;
    top: 10px;
    cursor: pointer;
    font-size: 22px;
    color: #888;
}

.close:hover {
    color: #333;
}

/* 忘記密碼的關閉按鈕 */
.close-forgot {
    position: absolute;
    right: 15px;
    top: 10px;
    cursor: pointer;
    font-size: 22px;
    color: #888;
}

.close-forgot:hover {
    color: #333;
}

/* 標題 */
a {
    text-decoration: none;
    margin-top: 20px;
    color: #f49360;
}

.modal-title {
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: bold;
    color: #f49360;
}

/* 表單 */
.form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-group {
    width: 100%;
    margin-bottom: 15px;
}

.form-group input {
    width: 90%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 14px;
    text-align: center;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #f49360;
}

/* 註冊按鈕 */
.btn-primary {
    width: 90%;
    padding: 12px;
    background: #f3a953;
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #ff7b33;
}