/** ERP 로그인·인증 화면 (교육생 포털 auth 스타일 계열) */

:root {
    --erp-auth-primary: #2563EB;
    --erp-auth-primary-dark: #1D4ED8;
    --erp-auth-primary-soft: #EFF6FF;
    --erp-auth-text: #111827;
    --erp-auth-text-secondary: #374151;
    --erp-auth-text-muted: #6B7280;
    --erp-auth-border: #E5E7EB;
    --erp-auth-bg: #F3F6FB;
    --erp-auth-card: #FFFFFF;
    --erp-auth-radius: 16px;
    --erp-auth-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
}

.erp-auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--erp-auth-text);
}

.erp-auth-body--card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #EEF2FF 0%, #F8FAFC 45%, #F3F6FB 100%);
    padding: 1.5rem;
}

.erp-auth-body--split {
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, #EEF2FF 0%, #F8FAFC 45%, #F3F6FB 100%);
}

.erp-auth-body--card .auth-container {
    width: 100%;
    max-width: 420px;
}

.erp-auth-body--card .auth-card {
    background: var(--erp-auth-card);
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: var(--erp-auth-radius);
    box-shadow: var(--erp-auth-shadow);
}

.erp-auth-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.erp-auth-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.erp-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--erp-auth-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.erp-auth-brand i {
    font-size: 1.25rem;
}

.erp-auth-header__note {
    font-size: 13px;
    color: var(--erp-auth-text-muted);
    font-weight: 500;
}

.erp-auth-main {
    flex: 1;
    display: flex;
    align-items: stretch;
}

.erp-auth-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-height: calc(100vh - 65px);
}

.erp-auth-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    background: linear-gradient(145deg, #1E3A8A 0%, #2563EB 55%, #3B82F6 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.erp-auth-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.erp-auth-hero__inner {
    position: relative;
    max-width: 420px;
}

.erp-auth-hero__badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    margin-bottom: 1.25rem;
}

.erp-auth-hero__title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    margin: 0 0 1rem;
    letter-spacing: -0.03em;
}

.erp-auth-hero__brand-line {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    line-height: 1.1;
}

.erp-auth-hero__logo {
    font-size: clamp(2.5rem, 6vw, 3.25rem);
    font-weight: 900;
    letter-spacing: -0.06em;
    line-height: 1;
    padding: 0.12rem 0.55rem 0.18rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.erp-auth-hero__brand-name {
    font-size: clamp(1.65rem, 3.8vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.erp-auth-hero__org {
    font-size: clamp(1.05rem, 2.4vw, 1.25rem);
    font-weight: 600;
    line-height: 1.35;
    opacity: 0.92;
    letter-spacing: -0.01em;
}

.erp-auth-hero__lead {
    font-size: 15px;
    line-height: 1.65;
    opacity: 0.92;
    margin: 0 0 2rem;
}

.erp-auth-hero__features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.erp-auth-hero__features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.95;
}

.erp-auth-hero__features i {
    font-size: 1rem;
    opacity: 0.9;
}

.erp-auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
}

.erp-auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--erp-auth-card);
    border-radius: var(--erp-auth-radius);
    padding: 2.25rem 2rem;
    box-shadow: var(--erp-auth-shadow);
    border: 1px solid rgba(229, 231, 235, 0.6);
}

.erp-auth-card__title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    letter-spacing: -0.03em;
    color: var(--erp-auth-text);
}

.erp-auth-card__desc {
    font-size: 14px;
    color: var(--erp-auth-text-muted);
    margin: 0 0 1.75rem;
    line-height: 1.55;
}

.erp-auth-alert {
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.erp-auth-alert--danger {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #B91C1C;
}

.erp-auth-alert--success {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #047857;
}

.erp-auth-alert--warning {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    color: #92400E;
}

.erp-auth-alert a {
    color: inherit;
    font-weight: 600;
}

.erp-auth-alert hr {
    margin: 0.65rem 0;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.erp-auth-alert small {
    display: block;
    font-size: 12px;
    opacity: 0.9;
}

.erp-auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.erp-auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.erp-auth-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--erp-auth-text-secondary);
}

.erp-auth-input {
    width: 100%;
    height: 48px;
    padding: 0 1rem;
    font-size: 15px;
    color: var(--erp-auth-text);
    background: #FAFBFC;
    border: 1px solid var(--erp-auth-border);
    border-radius: 12px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.erp-auth-input::placeholder {
    color: #9CA3AF;
}

.erp-auth-input:focus {
    background: #fff;
    border-color: var(--erp-auth-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.erp-auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: -0.25rem;
}

.erp-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 13px;
    color: var(--erp-auth-text-secondary);
    cursor: pointer;
    user-select: none;
}

.erp-auth-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--erp-auth-primary);
}

.erp-auth-link {
    font-size: 13px;
    color: var(--erp-auth-primary);
    font-weight: 600;
    text-decoration: none;
}

.erp-auth-link:hover {
    text-decoration: underline;
}

.erp-auth-submit {
    width: 100%;
    height: 50px;
    margin-top: 0.35rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(180deg, #3B82F6 0%, #2563EB 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: transform 0.12s, box-shadow 0.12s, opacity 0.12s;
}

.erp-auth-submit:hover:not(:disabled) {
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

.erp-auth-submit:active:not(:disabled) {
    transform: translateY(1px);
}

.erp-auth-submit:disabled {
    opacity: 0.75;
    cursor: wait;
}

.erp-auth-footer {
    margin: 1.5rem 0 0;
    text-align: center;
    font-size: 13px;
    color: var(--erp-auth-text-muted);
    line-height: 1.6;
}

.erp-auth-footer a {
    color: var(--erp-auth-primary);
    font-weight: 600;
    text-decoration: none;
}

.erp-auth-footer a:hover {
    text-decoration: underline;
}

.erp-auth-page-footer {
    padding: 1rem 1.5rem 1.25rem;
    text-align: center;
    font-size: 12px;
    color: var(--erp-auth-text-muted);
}

@media (max-width: 900px) {
    .erp-auth-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .erp-auth-hero {
        padding: 2.5rem 1.5rem 2rem;
    }

    .erp-auth-hero__features {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
    }

    .erp-auth-panel {
        padding: 0 1.25rem 2.5rem;
        margin-top: -1rem;
    }

    .erp-auth-card {
        padding: 2rem 1.5rem;
    }

    .erp-auth-header__note {
        display: none;
    }
}
