/* 智教平台 · 登录注册页 */
@import url('platform-theme.css');

.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 32px 24px 48px;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
}

.auth-wrap {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    margin: auto;
}

.auth-brand {
    text-align: center;
    margin-bottom: 28px;
    color: #1a3a52;
}

.auth-brand-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
}

.auth-brand h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
}

.auth-brand .auth-sub {
    font-size: 14px;
    opacity: 0.92;
    margin-top: 8px;
}

.auth-brand .auth-school {
    font-size: 12px;
    opacity: 0.75;
    margin-top: 6px;
}

.auth-card {
    padding: 32px 28px 28px;
    display: flex;
    flex-direction: column;
    max-height: none;
}

.auth-form-scroll {
    flex: 1 1 auto;
    min-height: 0;
    max-height: min(52vh, 420px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    margin-right: -4px;
}

.auth-form-scroll::-webkit-scrollbar { width: 6px; }
.auth-form-scroll::-webkit-scrollbar-thumb { background: #d9d9d9; border-radius: 3px; }

.auth-form-actions {
    flex-shrink: 0;
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1px solid #f5f5f5;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 24px;
}

.auth-tab {
    flex: 1;
    padding: 12px 8px;
    text-align: center;
    font-size: 15px;
    color: #999;
    cursor: pointer;
    margin-bottom: -1px;
    transition: color 0.2s;
}

.auth-tab.active {
    color: #333;
    font-weight: 600;
}

.auth-field {
    margin-bottom: 16px;
}

.auth-field label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.auth-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}



.auth-input-wrap i {
    width: 42px;
    text-align: center;
    color: #bbb;
    flex-shrink: 0;
}

.auth-input-wrap input {
    flex: 1;
    border: none;
    padding: 12px 12px 12px 0;
    font-size: 14px;
    outline: none;
    background: transparent;
}

.auth-btn {
    width: 100%;
    padding: 13px;
    margin-top: 8px;
    font-size: 16px;
    cursor: pointer;
}

.auth-alert {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}

.auth-alert.error { background: #fff2f0; color: #ff4d4f; border: 1px solid #ffccc7; }
.auth-alert.success { background: #f6ffed; color: #52c41a; border: 1px solid #b7eb8f; }
.auth-alert.info { background: #e6f7ff; color: #0050b3; border: 1px solid #91d5ff; }

.auth-hint { text-align: center; font-size: 12px; color: #999; margin-top: 14px; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 12px; color: #5c6b7a; }
.auth-footer a { color: #1890ff; }
.auth-form-panel { display: none; }
.auth-form-panel.active { display: block; }


