/* 白洞电玩管理系统 - 现代登录页 v2.0 */
/* 重要：覆盖框架样式 */
html, body {
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #F8FAFC !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif !important;
}

body.layui-layout-body {
    background: #F8FAFC !important;
}

:root {
    --primary: #4F46E5;
    --primary-light: #6366F1;
    --primary-dark: #4338CA;
    --bg-dark: #1E1B4B;
    --bg-light: #F8FAFC;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --white: #FFFFFF;
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg-light);
}

/* 主容器 - 左右分栏 */
.login-wrapper {
    display: flex !important;
    min-height: 100vh !important;
    width: 100% !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 9999 !important;
    background: #F8FAFC !important;
}

/* ===== 左侧品牌区 ===== */
.brand-section {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.brand-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 15s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 100px;
    right: -50px;
    animation-delay: -5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: -50px;
    left: 30%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

.brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.brand-logo {
    margin-bottom: 24px;
}

.logo-icon {
    font-size: 64px;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.brand-logo h1 {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.brand-slogan {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 12px;
    opacity: 0.95;
}

.brand-desc {
    font-size: 14px;
    opacity: 0.8;
    letter-spacing: 2px;
}

.brand-footer {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

/* ===== 右侧登录区 ===== */
.login-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background: var(--bg-light);
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--white);
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: var(--shadow);
    animation: slideUp 0.6s ease-out;
}

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

.form-header {
    text-align: center;
    margin-bottom: 36px;
}

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

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

.form-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 18px;
    z-index: 1;
}

.input-wrapper .layui-input,
.login-section .layui-input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 46px;
    font-size: 14px;
    color: var(--text-dark);
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.2s ease;
    -webkit-text-fill-color: var(--text-dark) !important;
}

.input-wrapper .layui-input:focus,
.login-section .layui-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    background: var(--white);
}

.input-wrapper .layui-input::placeholder {
    color: var(--text-muted);
}

/* 验证码行 */
.verify-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.verify-row .input-wrapper {
    flex: 1;
}

.captcha-box {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--bg-light);
    padding: 0 8px;
    cursor: pointer;
}

.captcha-box img {
    height: 36px;
    border-radius: 6px;
}

/* 登录按钮 */
.form-submit {
    margin-top: 8px;
}

.login-submit {
    width: 100%;
    height: 50px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--white) !important;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.35);
}

.login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
    filter: brightness(1.05);
}

.login-submit:active {
    transform: translateY(0);
}

/* 底部提示 */
.form-footer {
    margin-top: 24px;
    text-align: center;
}

.form-footer .tips {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

/* 隐藏类 */
.layui-hide {
    display: none !important;
}

/* ===== 移动端适配 ===== */
@media (max-width: 900px) {
    .login-wrapper {
        flex-direction: column;
    }
    
    .brand-section {
        flex: none;
        padding: 40px 20px;
        min-height: auto;
    }
    
    .brand-logo h1 {
        font-size: 32px;
    }
    
    .logo-icon {
        font-size: 48px;
    }
    
    .brand-slogan {
        font-size: 16px;
    }
    
    .brand-footer {
        display: none;
    }
    
    .login-section {
        flex: 1;
        padding: 24px;
    }
    
    .login-card {
        padding: 32px 24px;
        box-shadow: none;
        background: transparent;
    }
    
    .login-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .brand-section {
        padding: 30px 16px;
    }
    
    .login-section {
        padding: 16px;
    }
    
    .input-wrapper .layui-input {
        height: 44px;
        font-size: 14px;
    }
    
    .login-submit {
        height: 46px;
        font-size: 15px;
    }
}

/* 兼容旧结构 */
.login-container {
    display: none !important;
}

/* layui 提示样式覆盖 */
.layui-layer-tips .layui-layer-content {
    background-color: #343a40 !important;
    color: #e9ecef !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.layui-layer-tips i.layui-layer-TipsG,
.layui-layer-tips i.layui-layer-TipsT {
    border-right-color: #343a40 !important;
}

.layui-layer-tips i.layui-layer-TipsR,
.layui-layer-tips i.layui-layer-TipsB {
    border-left-color: #343a40 !important;
}