.erp-auth-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 12%, rgba(131, 197, 58, .13), transparent 25%),
        linear-gradient(135deg, #f7f9fa 0%, #eef2f4 100%);
}
.erp-auth-shell {
    width: min(940px, calc(100% - 40px));
    margin: auto;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    overflow: hidden;
    border: 1px solid rgba(215, 221, 226, .9);
    border-radius: 24px;
    background: var(--erp-surface);
    box-shadow: var(--erp-shadow);
}
.erp-auth-brand {
    min-height: 510px;
    padding: 54px;
    color: #fff;
    background: linear-gradient(150deg, #17191b 0%, #292d30 100%);
}
.erp-brand-lockup {
    min-height: 402px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.erp-brand-logo {
    width: 200px;
    max-width: 100%;
}
.erp-auth-intro h1 {
    max-width: 360px;
    margin: 0;
    font-size: 32px;
    line-height: 1.35;
    letter-spacing: .02em;
}
.erp-auth-intro p {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, .68);
    font-size: 15px;
}
.erp-login-card {
    padding: 58px 54px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.erp-login-header { margin-bottom: 34px; }
.erp-login-header h2 { margin: 0; font-size: 27px; line-height: 1.25; }
.erp-login-header p { margin: 9px 0 0; color: var(--erp-muted); font-size: 14px; }
.erp-field { margin-bottom: 20px; }
.erp-field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.erp-input-wrap { position: relative; }
.erp-input-wrap > i {
    position: absolute;
    top: 50%;
    left: 16px;
    width: 18px;
    color: #89939d;
    font-size: 16px;
    text-align: center;
    transform: translateY(-50%);
}
.erp-input-wrap input {
    width: 100%;
    height: 52px;
    padding: 0 16px 0 48px;
    color: var(--erp-text);
    border: 1px solid var(--erp-border);
    border-radius: 12px;
    outline: none;
    background: #fbfcfd;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.erp-input-wrap input:focus {
    border-color: #7aae40;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(131, 197, 58, .14);
}
.erp-form-error {
    min-height: 22px;
    margin: -5px 0 12px;
    color: var(--erp-danger);
    font-size: 13px;
    opacity: 0;
}
.erp-form-error.is-visible { opacity: 1; }
.erp-login-button {
    width: 100%;
    height: 54px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #fff;
    border: 0;
    border-radius: 12px;
    background: var(--erp-dark);
    box-shadow: 0 9px 20px rgba(25, 29, 32, .18);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.erp-login-button:hover { background: #111315; box-shadow: 0 11px 24px rgba(25, 29, 32, .23); transform: translateY(-1px); }
.erp-login-button:active { transform: translateY(0); }
.erp-login-button:disabled { cursor: wait; opacity: .72; }
.erp-login-button.is-loading > i { animation: erp-pulse 1s ease-in-out infinite; }
.erp-auth-footer {
    padding: 18px;
    color: #7e8892;
    font-size: 12px;
    text-align: center;
}
@keyframes erp-pulse { 50% { opacity: .35; transform: translateX(3px); } }
@media (max-width: 760px) {
    .erp-auth-shell { width: min(460px, calc(100% - 28px)); min-height: calc(100vh - 48px); grid-template-columns: 1fr; grid-template-rows: auto 1fr; border-radius: 20px; background: var(--erp-bg); }
    .erp-auth-brand { min-height: 150px; padding: 0 24px; display: flex; align-items: center; }
    .erp-brand-lockup { width: 100%; min-height: 0; max-height: 90px; flex-direction: row; align-items: center; justify-content: center; }
    .erp-brand-logo { width: 142px; flex: 0 0 142px; }
    .erp-auth-intro { display: none; }
    .erp-login-card { min-height: 0; margin: -12px 16px 20px; padding: 28px 20px 24px; align-self: start; justify-content: flex-start; border-radius: 20px; background: var(--erp-surface); box-shadow: 0 14px 34px rgba(17, 24, 28, .17); position: relative; z-index: 1; }
    .erp-login-header { margin-bottom: 28px; }
    .erp-login-header { text-align: center; }
    .erp-login-header h2 { font-size: 25px; }
    .erp-login-header p { margin-top: 8px; }
    .erp-auth-footer { min-height: 48px; padding: 15px 12px; background: var(--erp-bg); }
}
@media (max-width: 480px) {
    .erp-auth-page { background: var(--erp-bg); }
    .erp-auth-shell { width: 100%; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
    .erp-auth-brand { border-radius: 0; }
}
