﻿/**
 * 登录页样式（WEB.PLAT 范式：Content/css/login.css）
 * 由 Views/Account/Login.cshtml 引用（企微助手后台登录）。
 */

:root {
    --brand: #D59961;
    --brand-hover: #C0823E;
    --brand-light: #F7EAD9;
    --bg: #F2F3F5;
    --text: #1D2129;
    --text-2: #4E5969;
    --text-3: #a89e8d;
    --border: #E7E8EB;
}

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

body.adm-login-body {
    font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

.login-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #D59961 0%, #C0823E 40%, #EBC79B 100%);
    z-index: 0;
}

.login-bg::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, .08) 0%, transparent 70%);
    border-radius: 50%;
}

.login-bg::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, .05) 0%, transparent 70%);
    border-radius: 50%;
}

.login-card {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, .98);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(90, 60, 20, .20);
    width: 400px;
    max-width: 92vw;
    padding: 44px 40px 36px;
}

/* /login?err=... 回调提示 banner（如 OAuth 失败、Cookie 失效、token 过期等场景） */
.login-err-banner {
    position: relative;
    z-index: 2;
    width: 400px;
    max-width: 92vw;
    margin: 0 auto 14px;
    padding: 12px 18px 12px 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #FFF1F0 0%, #FFE3E0 100%);
    border: 1px solid #FFCCC7;
    color: #A8071A;
    font-size: 13px;
    line-height: 1.6;
    box-shadow: 0 6px 20px rgba(217, 48, 37, .12);
    word-break: break-word;
}

.login-err-icon {
    position: absolute;
    left: 16px;
    top: 12px;
    font-size: 18px;
    line-height: 1;
}

.login-err-text {
    display: block;
}

.login-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #D59961, #C0823E);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(213, 153, 97, .3);
}

.login-title {
    text-align: center;
    margin-bottom: 32px;
}

.login-title h1 {
    font-size: 22px;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 6px;
}

.login-title p {
    color: var(--text-3);
    font-size: 14px;
}

.login-tip {
    text-align: center;
    color: var(--text-3);
    font-size: 12px;
    margin-top: 20px;
    line-height: 1.6;
}

.login-mobile-link {
    text-align: center;
    margin-top: 10px;
}

.login-mobile-link a {
    color: var(--brand);
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.login-mobile-link a:hover {
    color: var(--brand-hover);
}

/* Element Plus 输入框圆角化 */
.el-input__wrapper {
    border-radius: 10px;
}

.el-button {
    border-radius: 10px;
    font-weight: 500;
}

.el-button--primary {
    background: var(--brand);
    border-color: var(--brand);
}

.el-button--primary:hover {
    background: var(--brand-hover);
    border-color: var(--brand-hover);
}

[v-cloak] {
    display: none !important;
}

@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px 24px;
        border-radius: 14px;
    }
}
