/* General Styles */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden; /* 隱藏scroll bar */
}

body {
    background: url('images/login_sigup_background.jpg') no-repeat center center/cover;  /* 背景圖片應用到body */
    height: 100%;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 400px;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
    overflow: hidden; /* 確保內容不超出容器 */
}

label {
    display: block;
    text-align: left;
    padding-left: 10px;
    margin-top: 10px;
}

/* Tab Style */
.tab {
    overflow: hidden;
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
}

.tab button {
    background-color: inherit;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px 20px; /* 上 ，右，下，左*/
    transition: 0.3s;
    font-size: 16px;
}

.tab button:hover {
    background-color: #ddd;
}

.tab button.active {
    color: #990000;
    border-bottom: 2px solid #990000;
}

/* Tab content */
.tabcontent {
    display: none;
}

.tabcontent h2 {
    margin-bottom: 20px;
}

.tabcontent input {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.tabcontent button {
    background-color: #990000;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}

.tabcontent button:hover {
    background-color: #b30000;
}

.forgot-password {
    display: block;
    margin-top: 10px;
    color: #990000;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.alert {
    color: red;
    font-size: 12px;
}