.auth-page {
    min-height: 100vh;
    background: #f8fafc;
}

.auth-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-shell {
    width: 100%;
    max-width: 980px;
    min-height: 560px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: none;
}

@media (min-width: 768px) {
    .auth-shell {
        min-height: 640px;
        display: grid;
        grid-template-columns: 320px minmax(0, 1fr);
    }
}

.auth-aside {
    display: none;
    min-height: 640px;
    padding: 2rem;
    background: #1a2232;
    border-right: 1px solid #cbd5e1;
    color: #cbd5e1;
}

@media (min-width: 768px) {
    .auth-aside {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}

.auth-aside__brand {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
}

.auth-aside__title {
    margin-top: 1rem;
    /* erp-std-page 의 body h2 글로벌 규칙(font-size:14px !important) 보다 우선하도록 !important */
    font-size: 1.5rem !important;
    line-height: 1.35;
    color: #ffffff !important;
    font-weight: 600 !important;
}

.auth-aside__description {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #cbd5e1;
}

.auth-aside__meta {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.45);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-aside__item {
    border: 1px solid rgba(148, 163, 184, 0.65);
    border-radius: 2px;
    padding: 0.5rem 0.75rem;
    font-size: 12px;
    color: #cbd5e1;
}

.auth-aside__action {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.auth-aside__action:hover {
    background: #0f172a;
    border-color: #475569;
}

.auth-aside__action:active {
    transform: translateY(1px);
}

.auth-main {
    min-height: 560px;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .auth-main {
        min-height: 640px;
        padding: 2rem 2.5rem;
    }
}

.auth-header {
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 1.25rem;
}

.auth-brand-mobile {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #64748b;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .auth-brand-mobile {
        display: none;
    }
}

.auth-title-row {
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-back {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
}

.auth-back:hover {
    color: #1e293b;
}

.auth-heading {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

.auth-subtitle {
    margin-top: 0.25rem;
    font-size: 12px;
    color: #64748b;
}

.auth-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 1.25rem;
}

.auth-form {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.auth-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-field-grid-2 {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .auth-field-grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.auth-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
}

.auth-input {
    width: 100%;
    height: 36px;
    border: 1px solid #cbd5e1 !important;
    border-radius: 2px !important;
    padding: 0 0.75rem !important;
    font-size: 14px !important;
    color: #0f172a;
    background: #ffffff;
}

.auth-input:focus {
    outline: none;
    border-color: #1e293b;
}

.auth-row {
    display: flex;
    gap: 0.5rem;
}

.auth-row .auth-input {
    flex: 1;
}

.auth-btn-secondary {
    height: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 2px;
    background: #ffffff;
    color: #475569;
    padding: 0 0.75rem;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}
.auth-row .auth-btn-secondary{
    height: 40px;
    display: flex;
    align-items: center;
}
.auth-btn-secondary:hover {
    background: #f8fafc;
}

.auth-btn-primary {
    margin-top: auto;
    margin-bottom: 1.25rem;
    width: 100%;
    height: 36px;
    border: 1px solid #1e293b;
    border-radius: 2px;
    background: #1e293b;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

.auth-btn-primary:hover {
    background: #0f172a;
}

.auth-btn-primary:disabled {
    cursor: not-allowed;
    border-color: #cbd5e1;
    background: #cbd5e1;
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 12px;
    color: #475569;
}

.auth-message {
    min-height: 16px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
}

.auth-verify-box {
    margin-top: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-left: 3px solid #64748b;
    border-radius: 4px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.auth-verify-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.auth-verify-label {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.auth-timer {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.auth-timer::before {
    content: 'timer';
    font-family: 'Material Symbols Outlined';
    font-size: 14px;
    font-weight: normal;
}

.auth-btn-verify {
    height: 36px;
    padding: 0 1rem;
    background: #1e293b;
    color: #ffffff;
    border: none;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 600;
    transition: background-color 0.15s ease;
}

.auth-btn-verify:hover {
    background: #0f172a;
}

.auth-btn-verify:active {
    transform: translateY(1px);
}

.auth-links {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border-top: 1px solid #cbd5e1;
    padding-top: 1rem;
    font-size: 12px;
}

.auth-links__divider {
    color: #cbd5e1;
}

.auth-links__item {
    color: #64748b;
}

.auth-links__item:hover {
    color: #1e293b;
}

.auth-links__item--active {
    color: #1e293b;
    font-weight: 600;
}

.auth-modal {
    width: 100%;
    max-width: 448px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 2px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: none;
}

@keyframes authModalIn {
    from {
        opacity: 0;
        transform: translate(-50%, -55%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

#accessRequestModal:not(.hidden) .auth-modal-wrapper {
    animation: authModalIn 200ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.auth-modal__header {
    height: 56px;
    flex-shrink: 0;
    border-bottom: 1px solid #cbd5e1;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-modal__title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1e293b;
}

.auth-modal__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-modal__footer {
    height: 56px;
    flex-shrink: 0;
    border-top: 1px solid #cbd5e1;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

#passwordToggleButton {
    display: flex;
    justify-content: center;
    align-items: center;
}