/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    background-image: url('../images/login-background.jpg'); /* 背景图片路径 */
    background-size: cover; /* 背景图片覆盖整个页面 */
    background-position: center; /* 背景图片居中 */
    background-repeat: no-repeat; /* 背景图片不重复 */
}

/* 登录页面容器 */
.login-box {
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    height: 100vh; /* 占满整个视口高度 */
    position: relative; /* 相对定位 */
}

/* 登录方式切换容器 */
.ac-tab-container {
    width: 50%; /* 设置宽度为60% */
    margin-left: 33.33%; /* 向右偏移1/3的宽度 */
    max-width: 500px; /* 最大宽度 */
    background: rgba(255, 255, 255, 0.9); /* 背景色，添加透明度 */
    padding: 2rem; /* 内边距 */
    border-radius: 8px; /* 圆角 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* 阴影 */
    z-index: 1; /* 确保在背景图片的上层 */
}

/* 登录方式切换标签容器 */
.ac-tab {
    display: flex; /* 使用Flex布局 */
    justify-content: flex-start; /* 子元素靠左排列 */
    gap: 1rem; /* 子元素之间的间距 */
    margin-bottom: 1.5rem; /* 底部外边距 */
}

/* 登录方式切换标签项 */
.ac-tab-item {
    text-align: center; /* 文本居中对齐 */
    padding: 0.5rem; /* 内边距 */
    cursor: pointer; /* 鼠标悬停时显示为手型 */
    border-bottom: 2px solid transparent; /* 底部边框为透明 */
    transition: border-color 0.3s ease; /* 边框颜色过渡效果 */
}

/* 激活状态的标签项 */
.ac-tab-item.active {
    border-bottom-color: #0066cc; /* 激活状态的下划线颜色 */
}

.ac-tab-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.ac-tab-link:hover {
    color: #0066cc;
}

/* 登录表单样式 */
.login-content {
    margin-top: 1.5rem;
}

.ac-form-input {
    margin-bottom: 1rem;
}

.ac-input-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.ac-input-group {
    position: relative;
}

.ac-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.ac-input:focus {
    border-color: #0066cc;
    outline: none;
}

/* 登录按钮样式 */
.ac-btn {
    width: 100%;
    padding: 0.75rem;
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.ac-btn:hover {
    background: #0052a3;
}

/* 注册链接样式 */
.link-to-register {
    text-align: center;
    margin-top: 1rem;
}

.link-to-register a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.link-to-register a:hover {
    text-decoration: underline;
}

.ac-tab-panel {
    display: none; /* 默认隐藏所有面板 */
}

.ac-tab-panel.active {
    display: block; /* 显示激活的面板 */
}
