@charset "UTF-8";

/* login_style.css - 专门用于登录页面和管理页面的样式 */

/* 通用页面标题样式 */
.title {
    margin: 80px auto;
    text-align: center;
}

.title h1 {
    font-size: 36px;
    font-family: Noto Sans JP;
    font-weight: 700;
    color: rgb(0, 97, 177);
    line-height: 1.2;
}

/* 主要内容区域样式 - Sticky Footer布局 */
#main {
    flex: 1;
    padding-bottom: 40px;
}

/* 页面整体布局 - Sticky Footer */
#all {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* body样式由common.css统一管理，包括固定header的padding-top */

/* ==================== 登录页面样式 ==================== */
/* 登录页面容器 */
.login-container {
    min-height: calc(100vh - 280px); /* 调整为固定header后的高度 */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    flex: 1;
}

/* 登录卡片 */
.login-card {
    width: 340px;
    height: 405px;
    padding: 10px;
    background: var(--Background-colorBgBase, white);
    border-radius: 24px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    display: inline-flex;
}

/* 登录卡片内容 */
.login-content {
    width: 292px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    display: inline-flex;
}

/* 登录头部 */
.login-header {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    display: flex;
}

/* 品牌logo区域 */
.brand-section {
    justify-content: center;
    align-items: center;
    display: inline-flex;
}

/* SVG logo */
.brand-logo-svg {
    height: 50px;
    width: auto;
    max-width: 207px;
}

/* 登录标题 */
.login-title {
    color: var(--Text-colorText, rgba(0, 0, 0, 0.88));
    font-size: 14px;
    font-family: Noto Sans JP;
    font-weight: 500;
    word-wrap: break-word;
}

/* 登录表单 */
.login-form {
    align-self: stretch;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    display: flex;
}

/* 输入框容器 */
.input-group {
    align-self: stretch;
    border-radius: 16px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    display: flex;
}

/* 输入框包装 */
.input-wrapper {
    align-self: stretch;
    position: relative;
}

/* 邮箱输入框 */
.email-input {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    outline: 1px var(--Border-colorBorder, #D9D9D9) solid;
    outline-offset: -1px;
    border: none;
    font-size: 14px;
    font-family: Noto Sans JP;
    color: var(--Text-colorText, rgba(0, 0, 0, 0.88));
    background: white;
    box-sizing: border-box;
}

/* 密码输入框 */
.password-input {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
    border-bottom-right-radius: 12px;
    border-bottom-left-radius: 12px;
    outline: 1px var(--Border-colorBorder, #D9D9D9) solid;
    outline-offset: -1px;
    border: none;
    font-size: 14px;
    font-family: Noto Sans JP;
    color: var(--Text-colorText, rgba(0, 0, 0, 0.88));
    background: white;
    box-sizing: border-box;
}

/* 输入框错误信息 */
.input-error {
    position: absolute;
    top: 100%;
    left: 0;
    color: #ff4d4f;
    font-size: 12px;
    margin-top: 4px;
}

/* 错误提示 */
.error-message {
    color: #ff4d4f;
    font-size: 12px;
    font-family: Noto Sans JP;
}

/* 登录按钮 */
.login-button {
    align-self: stretch;
    height: 40px;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 8px;
    padding-bottom: 8px;
    background: #0052D9;
    overflow: hidden;
    border-radius: 8px;
    justify-content: center;
    align-items: center;
    gap: 4px;
    display: inline-flex;
    border: none;
    cursor: pointer;
}

/* 登录按钮文字 */
.login-button-text {
    text-align: center;
    color: white;
    font-size: 16px;
    font-family: Noto Sans JP;
    font-weight: 700;
    line-height: 24px;
    word-wrap: break-word;
}

/* 注册链接 */
.register-link {
    text-decoration: none;
}

/* 注册按钮 */
.register-button {
    width: 234px;
    height: 40px;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 8px;
    padding-bottom: 8px;
    background: white;
    overflow: hidden;
    border-radius: 8px;
    outline: 1px var(--Border-colorBorder, #D9D9D9) solid;
    outline-offset: -1px;
    justify-content: center;
    align-items: center;
    gap: 4px;
    display: inline-flex;
    cursor: pointer;
}

/* 注册按钮文字 */
.register-button-text {
    text-align: center;
    color: var(--Text-colorTextSecondary, rgba(0, 0, 0, 0.65));
    font-size: 16px;
    font-family: Noto Sans JP;
    font-weight: 700;
    line-height: 24px;
    word-wrap: break-word;
}

/* ==================== 登录页面响应式样式 ==================== */
@media screen and (max-width: 768px) {
    .login-container {
        min-height: calc(100vh - 320px); /* 移动端调整更多padding */
        padding: 15px;
    }
    
    .login-card {
        width: 100%;
        max-width: 320px;
        height: auto;
        min-height: 380px;
        padding: 20px 15px;
    }
}

@media screen and (max-width: 480px) {
    .login-container {
        min-height: calc(100vh - 340px);
        padding: 10px;
    }
    
    .login-card {
        max-width: 300px;
        min-height: 360px;
        padding: 15px 10px;
    }
}

/* ==================== 管理页面样式 ==================== */
/* 管理页面容器 - 使用CSS Grid实现更好的响应式布局 */
.admin-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 20px;
    justify-items: center;
    align-items: start;
}

/* 管理页面卡片 - 响应式宽度 */
.admin-card {
    width: 100%;
    max-width: 386px;
    min-width: 280px;
    height: 206px;
    position: relative;
    background: white;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* 管理页面卡片 - 响应式宽度（大卡片与普通卡片统一） */
.admin-card-large {
    width: 100%;
    max-width: 386px;
    min-width: 280px;
    height: 206px;
    position: relative;
    background: white;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* 卡片悬停效果 */
.admin-card:hover,
.admin-card-large:hover {
    transform: translateY(-2px);
    box-shadow: 0px 12px 32px 12px rgba(0, 0, 0, 0.08);
}

/* 卡片标题 */
.admin-card-title {
    left: 20px;
    top: 20px;
    position: absolute;
    color: #1D2129;
    font-size: 20px;
    font-family: Noto Sans JP;
    font-weight: 500;
    line-height: 28px;
    word-wrap: break-word;
}

/* 卡片图标容器 - 标准位置 */
.admin-card-icon {
    width: 162px;
    height: 162px;
    left: 112px;
    top: 42px;
    position: absolute;
}

/* 卡片图标容器 - 统一使用标准位置 */
.admin-card-icon-large {
    width: 162px;
    height: 162px;
    left: 112px;
    top: 42px;
    position: absolute;
}

/* 卡片图标容器 - 文件管理使用标准位置 */
.admin-card-icon-file {
    width: 162px;
    height: 162px;
    left: 112px;
    top: 42px;
    position: absolute;
}

/* 卡片图标容器 - 预定登录特殊位置保持 */
.admin-card-icon-register {
    width: 162px;
    height: 162px;
    left: 112px;
    top: 48px;
    position: absolute;
}

/* 卡片图标图片 */
.admin-card-icon img,
.admin-card-icon-large img,
.admin-card-icon-file img,
.admin-card-icon-register img {
    width: 162px;
    height: 162px;
    left: 0px;
    top: 0px;
    position: absolute;
}

/* 卡片链接 */
.admin-card a,
.admin-card-large a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* ==================== 移动端响应式样式 ==================== */
/* 大屏幕 (1200px+) - 3列布局 */
@media screen and (min-width: 1200px) {
    .admin-container {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1240px;
    }
}

/* 中等屏幕 (900px - 1199px) - 2列布局 */
@media screen and (min-width: 900px) and (max-width: 1199px) {
    .admin-container {
        grid-template-columns: repeat(2, 1fr);
        max-width: 840px;
        padding: 0 20px;
    }
}

/* 平板设备 (768px - 899px) - 2列布局紧凑版 */
@media screen and (max-width: 899px) {
    .title {
        margin: 60px auto;
    }
    
    .title h1 {
        font-size: 32px;
    }
    
    .admin-container {
        grid-template-columns: repeat(2, 1fr);
        max-width: 760px;
        padding: 0 15px;
        gap: 15px;
    }
    
    .admin-card,
    .admin-card-large {
        max-width: 350px;
        height: 180px;
    }
    
    .admin-card-title {
        font-size: 18px;
        line-height: 24px;
    }
    
    .admin-card-icon,
    .admin-card-icon-large,
    .admin-card-icon-file,
    .admin-card-icon-register {
        width: 120px;
        height: 120px;
        left: calc(50% - 60px);
        top: 35px;
    }
    
    .admin-card-icon img,
    .admin-card-icon-large img,
    .admin-card-icon-file img,
    .admin-card-icon-register img {
        width: 120px;
        height: 120px;
    }
}

/* 移动设备 (最大768px) - 单列布局 */
@media screen and (max-width: 768px) {
    .title {
        margin: 40px auto;
    }
    
    .title h1 {
        font-size: 28px;
    }
    
    .admin-container {
        grid-template-columns: 1fr;
        max-width: 400px;
        padding: 0 15px;
        gap: 15px;
    }
    
    .admin-card,
    .admin-card-large {
        width: 100%;
        max-width: 380px;
        min-width: 280px;
        height: 160px;
    }
    
    .admin-card-title {
        font-size: 16px;
        line-height: 22px;
        left: 15px;
        top: 15px;
    }
    
    .admin-card-icon,
    .admin-card-icon-large,
    .admin-card-icon-file,
    .admin-card-icon-register {
        width: 100px;
        height: 100px;
        left: calc(50% - 50px);
        top: 30px;
    }
    
    .admin-card-icon img,
    .admin-card-icon-large img,
    .admin-card-icon-file img,
    .admin-card-icon-register img {
        width: 100px;
        height: 100px;
    }
}

/* 小屏幕移动设备 (最大480px) */
@media screen and (max-width: 480px) {
    .title {
        margin: 30px auto 20px;
    }
    
    .title h1 {
        font-size: 24px;
    }
    
    .admin-container {
        grid-template-columns: 1fr;
        max-width: 100%;
        padding: 0 10px;
        gap: 12px;
    }
    
    .admin-card,
    .admin-card-large {
        width: 100%;
        max-width: 100%;
        min-width: auto;
        height: 140px;
    }
    
    .admin-card-title {
        font-size: 14px;
        line-height: 20px;
        left: 12px;
        top: 12px;
        max-width: calc(100% - 24px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .admin-card-icon,
    .admin-card-icon-large,
    .admin-card-icon-file,
    .admin-card-icon-register {
        width: 80px;
        height: 80px;
        left: calc(50% - 40px);
        top: 32px;
    }
    
    .admin-card-icon img,
    .admin-card-icon-large img,
    .admin-card-icon-file img,
    .admin-card-icon-register img {
        width: 80px;
        height: 80px;
    }
}

/* 超小屏幕设备 (最大360px) */
@media screen and (max-width: 360px) {
    .title {
        margin: 20px auto 15px;
    }
    
    .title h1 {
        font-size: 22px;
    }
    
    .admin-container {
        grid-template-columns: 1fr;
        padding: 0 8px;
        gap: 10px;
    }
    
    .admin-card,
    .admin-card-large {
        width: 100%;
        max-width: 100%;
        height: 130px;
    }
    
    .admin-card-title {
        font-size: 13px;
        line-height: 18px;
        left: 10px;
        top: 10px;
        max-width: calc(100% - 20px);
    }
    
    .admin-card-icon,
    .admin-card-icon-large,
    .admin-card-icon-file,
    .admin-card-icon-register {
        width: 70px;
        height: 70px;
        left: calc(50% - 35px);
        top: 32px;
    }
    
    .admin-card-icon img,
    .admin-card-icon-large img,
    .admin-card-icon-file img,
    .admin-card-icon-register img {
        width: 70px;
        height: 70px;
    }
}

/* ==================== 页面内容区域样式调整 ==================== */
/* Sticky Footer布局下的响应式调整 */
@media screen and (max-width: 768px) {
    #main {
        padding-bottom: 30px;
    }
}

@media screen and (max-width: 480px) {
    #main {
        padding-bottom: 20px;
    }
}