/* 登录页样式：蓝色渐变 + 左右分栏（参考 vue-admin-better 登录页设计规范） */
* { box-sizing: border-box; }

body.auth-body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.login-container {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #4d8af0 0%, #1a56db 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.background-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .1);
    backdrop-filter: blur(10px);
}

.floating-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    animation: loginFloat 6s ease-in-out infinite;
}

.shape-1 { width: 80px; height: 80px; top: 20%; left: 10%; animation-delay: 0s; }
.shape-2 { width: 120px; height: 120px; top: 60%; right: 10%; animation-delay: 2s; }
.shape-3 { width: 60px; height: 60px; top: 40%; right: 20%; animation-delay: 4s; }
.shape-4 { width: 100px; height: 100px; bottom: 20%; left: 20%; animation-delay: 1s; }

@keyframes loginFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.login-content {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    max-width: 1200px;
    min-height: 600px;
    background: rgba(255, 255, 255, .95);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25);
    backdrop-filter: blur(20px);
    overflow: hidden;
}

/* 左侧品牌区 */
.login-left {
    flex: 1;
    background: linear-gradient(135deg, #4d8af0 0%, #1a56db 100%);
    color: #fff;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
    background-size: 18px 18px;
    opacity: .5;
}

.welcome-section {
    position: relative;
    z-index: 1;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: #fff;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    box-shadow: 0 8px 20px rgba(6, 26, 84, .28);
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    display: block;
}

.logo-text {
    font-size: 26px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.welcome-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.welcome-subtitle {
    font-size: 17px;
    opacity: .9;
    margin: 0 0 40px 0;
    line-height: 1.6;
}

.feature-list .feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 16px;
}

.feature-list .feature-item i {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, .2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-size: 12px;
    flex: 0 0 24px;
}

.feature-list .feature-item span { font-weight: 500; }

/* 右侧表单区 */
.login-right {
    flex: 1;
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 400px;
}

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

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
}

.login-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.form-item { margin-bottom: 16px; }

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper .input-icon {
    position: absolute;
    left: 16px;
    z-index: 2;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 16px;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    height: 46px;
    padding: 0 50px 0 50px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    font-size: 16px;
    background: #fafafa;
    color: #333;
    outline: 0;
    transition: all .3s ease;
}

.input-wrapper input:focus {
    border-color: #4d8af0;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(77, 138, 240, .1);
}

.input-wrapper input::placeholder { color: #999; }

.input-wrapper select {
    width: 100%;
    height: 46px;
    padding: 0 16px 0 50px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    font-size: 16px;
    background: #fafafa;
    color: #333;
    outline: 0;
    appearance: none;
    transition: all .3s ease;
}

.input-wrapper select:focus {
    border-color: #4d8af0;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(77, 138, 240, .1);
}

.password-toggle {
    position: absolute;
    right: 16px;
    z-index: 2;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    cursor: pointer;
    transition: color .3s ease;
}

.password-toggle:hover { color: #4d8af0; }

.captcha-box {
    position: absolute;
    right: 8px;
    z-index: 2;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #f0f0f0;
    background: #fff;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.form-options label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.forgot-link,
.register-link .link {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: color .3s ease;
    cursor: pointer;
    background: none;
    border: 0;
    padding: 0;
}

.forgot-link:hover,
.register-link .link:hover { color: #1a56db; }

.login-btn {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #4d8af0 0%, #1a56db 100%);
    border: 0;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all .3s ease;
    margin-bottom: 24px;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(77, 138, 240, .3);
}

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

.login-btn:disabled { opacity: .7; cursor: not-allowed; transform: none; }

.register-link {
    text-align: center;
    font-size: 14px;
    color: #666;
}

.register-link .link { font-weight: 600; margin-left: 4px; }

.login-alert {
    display: none;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 14px;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.login-alert.show { display: flex; }
.login-alert.ok { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }

/* FastAdmin 后台登录的校验提示容器 */
#errtips { display: none; }
#errtips:not(:empty) { display: flex; }

.login-form { display: none; }
.login-form.active { display: block; animation: loginFade .3s ease; }

@keyframes loginFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.form-tip {
    margin-top: 18px;
    font-size: 13px;
    line-height: 1.7;
    color: #64748b;
    background: #f4f7fd;
    border-radius: 12px;
    padding: 12px 14px;
}

.form-tip i { color: #4d8af0; margin-right: 6px; }

@media (max-width: 900px) {
    .login-container { padding: 14px; height: auto; min-height: 100vh; align-items: flex-start; }
    .login-content {
        flex-direction: column;
        min-height: 0;
        border-radius: 16px;
        margin: 6px 0;
    }
    .login-left { padding: 26px 22px; text-align: center; }
    .logo-container { justify-content: center; margin-bottom: 16px; }
    .logo-icon { width: 44px; height: 44px; border-radius: 11px; margin-right: 12px; }
    .logo-icon i { font-size: 22px; }
    .logo-text { font-size: 20px; }
    .welcome-title { font-size: 24px; margin-bottom: 10px; }
    .welcome-subtitle { font-size: 14px; margin-bottom: 18px; }
    .feature-list { display: none; }
    .login-right { padding: 30px 22px 34px; }
}
