@charset "UTF-8";
/* ==========================================================================
   学生登录页（login.html）自定义样式
   渐变 hero + 白色圆角卡片 + Bootstrap 5 表单控件。
   评价页/已完成页/提示页走另一套（student.css，卡片清单式）。
   加载顺序：bootstrap.min.css → login.css
   ========================================================================== */

:root {
    --brand: #0d6efd;
    --brand-dark: #0a58ca;
    --text-main: #1f2329;
    --text-sub: #8a9099;
    --line: #eef0f3;
    --danger: #fa5151;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

body {
    --bs-body-bg: #f5f7fa;
    --bs-body-color: var(--text-main);
    --bs-body-font-size: 16px;
    --bs-body-font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
                           "Helvetica Neue", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --bs-border-radius: 12px;
    --bs-border-radius-lg: 16px;

    min-height: 100vh;
    padding-bottom: calc(24px + var(--safe-bottom));
    -webkit-font-smoothing: antialiased;
    touch-action: manipulation;
}

.container {
    max-width: 560px;
}

/* 图标：尺寸跟随 font-size，颜色跟随 color（与 evaluate.css 一致） */
.ico {
    display: inline-block;
    width: 1em;
    height: 1em;
    flex: none;
    fill: currentColor;
    vertical-align: -.12em;
    pointer-events: none;
}

.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* ==================== 顶部渐变区 ==================== */
.hero {
    padding: calc(46px + var(--safe-top)) 0 44px;
    background: linear-gradient(150deg, #1677ff 0%, var(--brand) 45%, var(--brand-dark) 100%);
    color: #fff;
}

.hero-inner {
    padding-top: 8px;
}

.hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .22);
    font-size: 26px;
}

.hero-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.3;
}

.hero-desc {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .86);
}

/* ==================== 表单卡片 ==================== */
.login-wrap {
    margin-top: -22px;
    position: relative;
    z-index: 1;
}

.login-card {
    border: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(15, 40, 90, .08);
    overflow: hidden;
}

.login-card .card-body {
    padding: 22px 18px 20px;
}

/* 表单标签 */
.form-label {
    margin-bottom: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: #4a5159;
}

.form-label .ico {
    margin-right: 5px;
    font-size: 15px;
    color: var(--brand);
    vertical-align: -2px;
}

/* 控件：统一 48px 高度，方便手指点击 */
.form-control,
.form-select {
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid #e3e7ec;
    border-radius: 12px;
    background-color: #fbfcfd;
    font-size: 16px;   /* iOS 聚焦时 <16px 会触发自动缩放 */
    color: var(--text-main);
}

.form-control::placeholder {
    color: #b6bcc4;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, .12);
}

/* 出错时给控件加红边 */
.is-invalid {
    border-color: var(--danger);
}

/* 提交按钮 */
.btn-submit {
    height: 50px;
    border: 0;
    border-radius: 25px;
    background: linear-gradient(135deg, #2a8bff 0%, var(--brand) 55%, var(--brand-dark) 100%);
    font-size: 16.5px;
    font-weight: 600;
    letter-spacing: .12em;
    box-shadow: 0 6px 16px rgba(13, 110, 253, .28);
}

.btn-submit:active {
    transform: translateY(1px);
}

/* 错误提示条 */
.alert-error {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
    padding: 11px 13px;
    border: 1px solid #ffd9d9;
    border-radius: 12px;
    background: #fff5f5;
    color: #d93b3b;
    font-size: 13.5px;
    line-height: 1.5;
}

.alert-error .ico {
    margin-top: 2px;
    font-size: 16px;
    color: var(--danger);
}

/* 底部说明 */
.login-tip {
    margin: 16px 0 0;
    font-size: 12px;
    line-height: 1.7;
    color: var(--text-sub);
    text-align: center;
}

/* ===== 提示页（notice.html）的大图标 ===== */
.notice-ico {
    width: 44px;
    height: 44px;
}
