/* ========== Login Page ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", "HarmonyOS Sans SC", sans-serif;
    background: #EDF1F7;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.login-wrapper {
    position: relative;
}

.login-container {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    width: 400px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15,23,42,.05), 0 4px 12px rgba(15,23,42,.05);
}

.login-header {
    background: #FFFFFF;
    padding: 32px 32px 20px;
    text-align: center;
    border-bottom: 1px solid #F1F5F9;
}
.login-header h1 {
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #0F172A;
}
.login-header p {
    font-size: 13px;
    color: #64748B;
    margin-top: 6px;
}

.login-tabs {
    display: flex;
    padding: 0 32px;
    border-bottom: 1px solid #F1F5F9;
}
.login-tabs button {
    flex: 1;
    padding: 14px 8px;
    border: none;
    background: none;
    font-size: 14px;
    color: #4B5563;
    cursor: pointer;
    font-weight: 500;
    transition: color .15s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-family: inherit;
}
.login-tabs button:hover { color: #111827; }
.login-tabs button.active {
    color: #2563EB;
    font-weight: 600;
    border-bottom-color: #2563EB;
}

.login-body {
    padding: 26px 32px 28px;
}

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 13px;
    color: #374151;
    margin-bottom: 6px;
    font-weight: 600;
}
.form-group input,
.form-group select {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
    font-family: inherit;
    background: #FFFFFF;
    color: #0F172A;
}
.form-group input::placeholder { color: #94A3B8; }
.form-group input:focus,
.form-group select:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
    background: #FFFFFF;
}

.btn-login {
    width: 100%;
    height: 44px;
    background: #2563EB;
    color: #FFFFFF;
    border: 1px solid #2563EB;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
    font-family: inherit;
    letter-spacing: 0.5px;
}
.btn-login:hover {
    background: #1D4ED8;
    border-color: #1D4ED8;
}
.btn-login:disabled {
    background: #A5B4FC;
    border-color: #A5B4FC;
    cursor: not-allowed;
}
.btn-login.success {
    background: #16A34A;
    border-color: #16A34A;
}
.btn-login.success:hover {
    background: #16A34A;
    border-color: #16A34A;
}

.error-msg {
    background: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FECACA;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}
.error-msg.show { display: block; }

.tab-panel {
    display: none;
}
.tab-panel.active {
    display: block;
}

.login-footer {
    text-align: center;
    padding: 14px 24px;
    font-size: 12px;
    color: #64748B;
    border-top: 1px solid #F1F5F9;
}
