/* login.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
    display: flex;
    background: linear-gradient(160deg, #0c4a6e 0%, #0369a1 50%, #0ea5e9 100%);
}

/* ===== 左侧品牌 ===== */
.brand {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 48px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.brand::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.brand-logo {
    max-width: 220px;
    height: auto;
    margin-bottom: 32px;
}

.brand h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.brand p {
    font-size: 15px;
    line-height: 1.8;
    opacity: 0.85;
    max-width: 260px;
    text-align: center;
}

/* ===== 右侧白色区 ===== */
.form-side {
    width: 480px;
    flex-shrink: 0;
    background: #ffffff;
    padding: 60px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-side h2 {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.subtitle {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 32px;
}

/* ===== 表单 ===== */
.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.input-box {
    display: flex;
    align-items: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    padding: 0 12px;
    height: 44px;
}

.input-box.active {
    border-color: #0ea5e9;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.08);
}

.input-box .icon {
    font-size: 15px;
    color: #94a3b8;
    margin-right: 8px;
    user-select: none;
}

.input-box.active .icon {
    color: #0ea5e9;
}

.input-box input {
    flex: 1;
    height: 100%;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #0f172a;
    outline: none;
}

.input-box input::placeholder {
    color: #cbd5e1;
}

/* ===== 选项行 ===== */
.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 13px;
}

.options label {
    display: flex;
    align-items: center;
    color: #64748b;
    cursor: pointer;
    user-select: none;
}

.options label input {
    margin-right: 6px;
    accent-color: #0ea5e9;
}

.options a {
    color: #0ea5e9;
    text-decoration: none;
}

.options a:hover {
    text-decoration: underline;
}

/* ===== 按钮 ===== */
.btn-login {
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 8px;
    background: #0ea5e9;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
}

.btn-login:hover {
    background: #0284c7;
}

.btn-login:active {
    background: #0369a1;
}

.btn-login:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

/* ===== 底部 ===== */
.copy {
    margin-top: 32px;
    text-align: center;
    font-size: 12px;
    color: #cbd5e1;
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-80px);
    padding: 10px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.warning { background: #fef3c7; color: #92400e; border: 1px solid #fbbf24; }
.toast.error   { background: #fee2e2; color: #991b1b; border: 1px solid #f87171; }
.toast.success { background: #dcfce7; color: #166534; border: 1px solid #4ade80; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .brand { display: none; }
    .form-side { width: 100%; flex-shrink: 0; }
}

@media (max-width: 480px) {
    .form-side { padding: 40px 24px; }
}
