body {
    margin: 0;
    background-color: #f0f0f0;
    font-family: Arial, sans-serif;
}

.main-box {
    width: 1200px;
    height: 700px;
    margin: 50px auto;
    position: relative;
    background-image: url('/images/login_bg.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom center;
    background-color: white;
    border: 2px solid #ccc;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Logo + 標題 */
.header {
    position: absolute;
    top: 180px;
    right: 20px;
    display: flex;
    flex-direction: column;             /* 垂直排列 */
    align-items: center;
    text-align: center;
}

.header img {
    height: 80px;
    margin-right: 50px;
    margin-bottom: 8px;                 /* 增加下方間距 */
}

.header .title {
    font-size: 30px;
    font-weight: bold;
    color: #162882;
}

/* 浮在右上角的校徽 */
.school-logo {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 220px;
    opacity: 0.1;
    z-index: 1;
    pointer-events: none; /* 不影響滑鼠操作 */
}

/* 公告區塊 */
.announcement-container {
    position: absolute;
    top: 60px;
    left: 20px;
    width: 740px;
    background: transparent;
    padding: 10px;
    border-radius: 12px; /* 圓角 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* 陰影效果 */
    overflow: hidden; /* 隱藏超出範圍的部分 */
}

.announcement {
    background: white;
    padding: 15px;
    max-height: 450px;
    overflow-y: auto; /* 滾動條功能 */
    border-radius: 8px; /* 保持內部圓角 */
}

.announcement::-webkit-scrollbar {
    width: 8px;
}

.announcement::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.announcement::-webkit-scrollbar-track {
    background-color: #f1f1f1;
    border-radius: 10px;
}

.announcement-header {
    text-align: left;
    margin-bottom: 5px; /* 增加標題和公告內容之間的間距 */
}

.announcement-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: bold;
    margin-left: 10px;
}

.announcement-item {
    background-color: #f0f4fa;
    border-left: 5px solid #162882;
    padding: 10px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.announcement-date {
    font-size: 12px;
    color: #666;
    font-weight: bold;
    margin-bottom: 4px;
}

.announcement-content {
    font-size: 14px;
    color: #333;
    /*white-space: pre-wrap;*/ /* 支援多行內容 */
}


/* 登入區塊 */
.login-box {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: #162882;
    padding: 20px;
    border-radius: 8px;
    color: white;
    width: 250px;
    box-shadow: inset 0 0 0 2px rgba(168, 208, 240, 0.5);
}

.login-box input[type="text"],
.login-box input[type="password"],
.login-box button {
    width: 240px;
    padding: 10px;
    margin: 8px 0 15px;
    border: none;
    border-radius: 4px;
    box-sizing: border-box;
    display: block;
}

.login-box button {
    background-color: #e60000;
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
}

.login-box button:hover {
    background-color: #cc0000;
}

.CopyRightMessage {
    position: absolute;
    bottom: 5px;
    left: 10px;
    color: gray;
    font-size: small;
}