/* ============================================================
   Teacher Login — 导师页专属样式 + 紫色主题覆盖
   ============================================================ */

/* ===== 主题变量覆盖：紫色 ===== */
:root {
    --theme-1: 99,102,241;
    --theme-2: 139,92,246;
    --theme-3: 167,139,250;

    --theme-hex-1: #6366f1;
    --theme-hex-2: #8b5cf6;
    --theme-hex-3: #a855f7;
    --theme-accent: #c4b5fd;

    --bg-top: #05020f;
    --bg-mid: #08041a;
    --bg-bottom: #04020c;

    --card-bg-1: 30,25,65;
    --card-bg-2: 20,15,50;
    --card-width: 440px;

    --input-bg: 10,8,30;

    --text-main: #e6e6fa;
    --text-muted: #a8a3d8;
    --text-muted-2: #8a85b8;
    --text-placeholder: #6b6594;

    --footer-rgb: 168,163,216;
}

/* ===== 顶部双入口切换 ===== */
.role-switch {
    display: flex;
    gap: 8px;
    padding: 5px;
    background: rgba(10,8,30,.55);
    border: 1px solid rgba(167,139,250,.18);
    border-radius: 14px;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}
.role-switch a {
    flex: 1;
    text-align: center;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .3px;
    color: #8a85b8;
    text-decoration: none;
    transition: all .25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
}
.role-switch a .role-icon {
    font-size: 15px;
    filter: grayscale(.5) opacity(.6);
    transition: all .25s;
}
.role-switch a:hover {
    color: #b8b0e8;
}
.role-switch a:hover .role-icon {
    filter: grayscale(0) opacity(1);
    transform: scale(1.1);
}
.role-switch a.active {
    color: #fff;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 4px 16px rgba(139,92,246,.5), inset 0 1px 0 rgba(255,255,255,.2);
}
.role-switch a.active .role-icon {
    filter: grayscale(0) opacity(1);
    transform: scale(1.1);
}
.role-switch a:not(.active):hover {
    background: rgba(167,139,250,.08);
}

/* ===== 身份条：TSPCN 系统 + MENTOR 角色 ===== */
.identity-strip {
    display: inline-flex;
    align-items: stretch;
    margin-top: 16px;
    background: rgba(20,15,50,.65);
    border: 1px solid rgba(167,139,250,.28);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-shadow:
        0 4px 16px rgba(0,0,0,.25),
        inset 0 1px 0 rgba(255,255,255,.05);
    transition: all .3s;
}
.identity-strip:hover {
    border-color: rgba(192,132,252,.5);
    box-shadow:
        0 6px 22px rgba(139,92,246,.3),
        inset 0 1px 0 rgba(255,255,255,.08);
}
.identity-strip::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(192,132,252,.5), transparent);
    opacity: 0;
    transition: opacity .3s;
}
.identity-strip:hover::before { opacity: 1; }

.ident-seg {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    position: relative;
    transition: all .25s;
}
.ident-system {
    color: #a8a3d8;
}
.ident-system .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80, 0 0 16px rgba(74,222,128,.5);
    animation: sysPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes sysPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .5; transform: scale(.75); }
}
.ident-system .ts-name {
    color: #c4b5fd;
    text-shadow: 0 0 10px rgba(167,139,250,.6);
    font-weight: 700;
}
.ident-system .sys-name {
    color: #8a85b8;
    letter-spacing: .15em;
    font-size: 10px;
}

.ident-divider {
    width: 1px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(167,139,250,.4) 20%,
        rgba(167,139,250,.6) 50%,
        rgba(167,139,250,.4) 80%,
        transparent 100%);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.ident-divider::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 10px;
    border-radius: 2px;
    background: linear-gradient(180deg,
        transparent 0%,
        #c4b5fd 50%,
        transparent 100%);
    box-shadow: 0 0 10px rgba(196,181,253,.9), 0 0 20px rgba(167,139,250,.5);
    animation: dividerFlow 2.4s ease-in-out infinite;
}
@keyframes dividerFlow {
    0%   { top: -12px; opacity: 0; }
    15%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.ident-mentor {
    color: #d8b4fe;
    background: linear-gradient(135deg,
        rgba(139,92,246,.15) 0%,
        rgba(192,132,252,.08) 100%);
    position: relative;
}
.ident-mentor .mentor-icon {
    font-size: 13px;
    filter: drop-shadow(0 0 6px rgba(216,180,254,.8));
    animation: mentorFloat 3s ease-in-out infinite;
}
@keyframes mentorFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-1.5px); }
}
.ident-mentor:hover {
    background: linear-gradient(135deg,
        rgba(139,92,246,.3) 0%,
        rgba(192,132,252,.15) 100%);
    color: #e9d5ff;
}

/* 窄屏隐藏"导师系统"四字 */
@media (max-width: 380px) {
    .ident-seg { padding: 6px 12px; font-size: 10px; letter-spacing: .15em; }
    .ident-system .sys-name { display: none; }
}