/* 文件路径: /css/style.css */

/* --- 全局样式和基础设置 --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 40px); /* 视窗高度减去padding */
    -webkit-tap-highlight-color: transparent; /* 点击时无高光 */
}

.container {
    width: 100%;
    max-width: 450px;
    background: #fff;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    box-sizing: border-box;
}

/* --- Logo 和标题 --- */
.logo-container {
    margin-bottom: 25px;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.logo-container h1 {
    font-size: 1.4em;
    color: #1d2129;
    margin: 0;
}
.logo-container h2 {
    font-size: 1em;
    font-weight: normal;
    color: #606770;
    margin: 5px 0 0;
}


/* --- 表单样式 --- */
.form-container {
    display: flex;
    flex-direction: column;
    gap: 15px; /* 表单元素间距 */
}

input[type="text"],
input[type="password"],
input[type="number"],
select {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, select:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
    outline: none;
}

button {
    background-color: #4a90e2;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    -webkit-appearance: none; /* 移除iOS默认样式 */
}

button:hover, button:focus {
    background-color: #357ABD;
}

button:active {
    background-color: #2a6496;
}

.message {
    color: #d93025;
    font-size: 14px;
    min-height: 20px; /* 占位，防止跳动 */
}

.success-message {
    color: #1e8e3e;
}

.switch-link {
    margin-top: 20px;
    font-size: 14px;
}

.switch-link a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: bold;
}

/* --- 弹窗样式 (用于团长登录) --- */
.modal {
    display: none; /* 默认隐藏 */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5); /* 半透明遮罩 */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border-radius: 10px;
    width: 85%;
    max-width: 400px;
    position: relative;
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
}

/* --- 其他入口 --- */
.admin-entry, .team-entry {
    margin-top: 15px;
    font-size: 14px;
}
.admin-entry a, .team-entry a {
    color: #606770;
    text-decoration: none;
}
.team-entry a {
    cursor: pointer;
}
