/* ============================================
   多模态大数据数字管理系统 - 登录页样式
   Modern Tech-style Login Page
   ============================================ */

/* ---------- Reset & Base ---------- */
.login-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1040 30%, #0d1f3c 60%, #091428 100%);
    position: relative;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ---------- Animated Background ---------- */
.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(56, 97, 251, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 60% 80%, rgba(56, 97, 251, 0.06) 0%, transparent 50%);
    z-index: 0;
}

/* Grid pattern overlay */
.login-page::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(56, 97, 251, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 97, 251, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
}

/* Floating orbs */
.login-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    animation: float 8s ease-in-out infinite;
}
.login-orb--1 {
    width: 400px;
    height: 400px;
    background: rgba(56, 97, 251, 0.12);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}
.login-orb--2 {
    width: 300px;
    height: 300px;
    background: rgba(139, 92, 246, 0.10);
    bottom: -80px;
    left: -60px;
    animation-delay: -3s;
}
.login-orb--3 {
    width: 200px;
    height: 200px;
    background: rgba(59, 130, 246, 0.08);
    top: 40%;
    left: 30%;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

/* ---------- Main Card Container ---------- */
.login-container {
    position: relative;
    z-index: 1;
    display: flex;
    width: 920px;
    max-width: 95vw;
    min-height: 520px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(15, 20, 50, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(56, 97, 251, 0.15);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(56, 97, 251, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ---------- Left Panel: Branding ---------- */
.login-brand {
    flex: 1;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(160deg, rgba(56, 97, 251, 0.08) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-right: 1px solid rgba(56, 97, 251, 0.1);
    position: relative;
    overflow: hidden;
}

.login-brand::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(56, 97, 251, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 97, 251, 0.04) 1px, transparent 1px);
    background-size: 30px 30px;
}

.login-brand-logo {
    position: relative;
    z-index: 1;
}

.login-brand-logo .logo-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3861fb 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(56, 97, 251, 0.3);
}

.login-brand-logo .logo-icon svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

.login-brand-title {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px 0;
    letter-spacing: 1px;
    line-height: 1.3;
}

.login-brand-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 32px 0;
    letter-spacing: 0.5px;
}

.login-features {
    position: relative;
    z-index: 1;
    list-style: none;
    padding: 0;
    margin: 0;
}

.login-features li {
    display: flex;
    align-items: center;
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13.5px;
    letter-spacing: 0.3px;
}

.login-features li .feature-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3861fb, #8b5cf6);
    margin-right: 12px;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(56, 97, 251, 0.4);
}

/* ---------- Right Panel: Form ---------- */
.login-form-panel {
    flex: 1;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form-heading {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 6px 0;
}

.login-form-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0 28px 0;
}

/* ---------- Form Inputs ---------- */
.login-input-group {
    position: relative;
    margin-bottom: 18px;
}

.login-input-group label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 6px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.login-input-group input[type="text"],
.login-input-group input[type="password"] {
    width: 100%;
    height: 44px;
    padding: 0 14px 0 42px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.login-input-group input:focus {
    border-color: rgba(56, 97, 251, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(56, 97, 251, 0.12);
}

.login-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.login-input-icon {
    position: absolute;
    left: 14px;
    bottom: 13px;
    width: 16px;
    height: 16px;
    fill: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    transition: fill 0.25s ease;
}

.login-input-group input:focus + .login-input-icon,
.login-input-group input:focus ~ .login-input-icon {
    fill: rgba(56, 97, 251, 0.7);
}

/* ---------- Captcha Row ---------- */
.login-captcha-row {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.login-captcha-row .login-input-group {
    flex: 1;
    margin-bottom: 0;
}

.login-captcha-img {
    height: 44px;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: opacity 0.2s ease;
}

.login-captcha-img:hover {
    opacity: 0.8;
}

/* ---------- Checkbox ---------- */
.login-remember {
    display: flex;
    align-items: center;
    margin-bottom: 22px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    user-select: none;
}

.login-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    accent-color: #3861fb;
    cursor: pointer;
}

/* ---------- Submit Button ---------- */
.login-btn {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #3861fb 0%, #5b4ae4 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(56, 97, 251, 0.3);
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(56, 97, 251, 0.45);
    background: linear-gradient(135deg, #4a70fc 0%, #6b5af5 100%);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 12px rgba(56, 97, 251, 0.3);
}

.login-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.08) 50%,
        transparent 70%
    );
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s ease;
}

.login-btn:hover::after {
    transform: rotate(45deg) translateX(100%);
}

/* ---------- Footer ---------- */
.login-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    text-align: center;
    padding: 16px 0;
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    letter-spacing: 0.3px;
}

/* ---------- Register Link ---------- */
.login-register-link {
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.login-register-link a {
    color: #6b8afa;
    text-decoration: none;
    margin-left: 4px;
    transition: color 0.2s ease;
}

.login-register-link a:hover {
    color: #8b9ffc;
}

/* ---------- Validation Error ---------- */
.login-page label.error {
    color: #f87171;
    font-size: 12px;
    margin-top: 4px;
    display: block;
    position: inherit;
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 768px) {
    .login-container {
        flex-direction: column;
        width: 95vw;
        max-width: 420px;
        min-height: auto;
    }

    .login-brand {
        padding: 32px 28px 24px;
        border-right: none;
        border-bottom: 1px solid rgba(56, 97, 251, 0.1);
    }

    .login-brand-title {
        font-size: 20px;
    }

    .login-features {
        display: none;
    }

    .login-brand-subtitle {
        margin-bottom: 0;
    }

    .login-form-panel {
        padding: 28px;
    }
}

@media screen and (max-width: 400px) {
    .login-container {
        border-radius: 12px;
    }
    .login-brand {
        padding: 24px 20px 18px;
    }
    .login-form-panel {
        padding: 20px;
    }
}
