/* ========================================
   拓诺科技 — 登录页（左右分栏：品牌展示 + 整高登录面板）
   变量来自 design-tokens.css；动画遵守 prefers-reduced-motion
   ======================================== */

.login-page {
    height: 100vh;
    display: flex;
    background: var(--bg-base);
    overflow: hidden;
}

/* 登录页整屏填充，去除滚动条与边缘留白 */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

/* ===== 左侧品牌展示区 ===== */
.brand-panel {
    display: none; /* 默认隐藏，桌面端启用 */
    position: relative;
    flex: 1.25;
    overflow: hidden;
    background: linear-gradient(150deg, #1D4ED8 0%, #2563EB 55%, #3B82F6 100%);
    color: #fff;
}

/* aurora 光斑 */
.aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.4;
    pointer-events: none;
}

.aurora-1 {
    width: 480px;
    height: 480px;
    top: -120px;
    right: -100px;
    background: radial-gradient(circle, rgba(147, 197, 253, 0.85), transparent 70%);
    animation: auroraDrift1 20s ease-in-out infinite;
}

.aurora-2 {
    width: 420px;
    height: 420px;
    bottom: -140px;
    left: -80px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.75), transparent 70%);
    animation: auroraDrift2 26s ease-in-out infinite;
}

@keyframes auroraDrift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-60px, 50px) scale(1.15); }
}

@keyframes auroraDrift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(70px, -40px) scale(1.1); }
}

/* 漂浮电商图标（玻璃拟态） */
.float-icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.22);
    color: rgba(255, 255, 255, 0.92);
    animation: floatY 7s ease-in-out infinite;
}

.float-icon svg {
    width: 55%;
    height: 55%;
}

.fi-1 { width: 80px; height: 80px; top: 16%; right: 14%; animation-delay: 0s; animation-duration: 7s; }
.fi-2 { width: 62px; height: 62px; top: 42%; right: 30%; animation-delay: 1.4s; animation-duration: 8s; }
.fi-3 { width: 68px; height: 68px; top: 60%; right: 10%; animation-delay: 0.8s; animation-duration: 6.5s; }

@keyframes floatY {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

/* 柱状图水印（右下角） */
.bar-watermark {
    position: absolute;
    right: 48px;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    gap: 18px;
    height: 220px;
    opacity: 0.18;
    pointer-events: none;
}

.bar-watermark span {
    width: 46px;
    border-radius: 10px 10px 0 0;
    background: #fff;
}

/* 品牌文案排版（参考译方科技布局） */
.brand-content {
    position: relative;
    z-index: 1;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 14vh 64px 56px;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(15, 23, 42, 0.3));
}

.brand-name {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
}

.brand-title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 13vh 0 0;
}

.brand-tagline {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin: 18px 0 0;
    max-width: 520px;
}

.brand-bullets {
    list-style: none;
    margin: 40px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.brand-bullets li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.92);
}

.brand-bullets li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #BFDBFE;
    flex-shrink: 0;
}

/* ===== 右侧登录区（整高填充，无卡片边框） ===== */
.login-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) var(--spacing-md);
    position: relative;
}

.login-inner {
    width: 100%;
    max-width: 400px;
    animation: cardIn 500ms var(--ease-out) both;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.login-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 36px;
}

.login-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: var(--color-danger);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: var(--spacing-md);
    animation: shake 400ms ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    50% { transform: translateX(6px); }
    75% { transform: translateX(-3px); }
}

.login-field {
    display: block;
    margin-bottom: var(--spacing-lg);
}

.login-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.login-label .req {
    color: var(--color-danger);
    font-style: normal;
    margin-right: 2px;
}

.login-input-wrap {
    position: relative;
    display: block;
}

.login-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

.login-input-wrap input {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px 13px 42px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    transition: border-color var(--duration-fast) var(--ease-default),
                box-shadow var(--duration-fast) var(--ease-default),
                background var(--duration-fast) var(--ease-default);
}

.login-input-wrap input:hover {
    background: var(--bg-secondary);
}

.login-input-wrap input:focus {
    outline: none;
    background: var(--bg-base);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px var(--color-primary-alpha);
}

.login-input-wrap input:focus + .login-input-icon,
.login-input-wrap input:focus ~ .login-input-icon {
    color: var(--color-primary);
}

.login-submit {
    width: 100%;
    padding: 13px 0;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
    transition: transform var(--duration-fast) var(--ease-default),
                box-shadow var(--duration-fast) var(--ease-default);
    margin-top: var(--spacing-sm);
}

.login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.45);
}

.login-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.login-footer {
    margin: 40px 0 0;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

.login-copyright {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== 响应式：桌面端显示品牌栏 ===== */
@media (min-width: 900px) {
    .brand-panel {
        display: block;
    }
    .login-panel {
        flex: 0 0 480px;
        border-left: 1px solid var(--border-color);
    }
}

/* ===== 降低动画偏好 ===== */
@media (prefers-reduced-motion: reduce) {
    .aurora-1, .aurora-2, .float-icon, .login-inner, .login-error {
        animation: none;
    }
}
