.modern-main.no-sidebar {
    padding: 0;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background:
        radial-gradient(circle at top left, rgba(79, 70, 229, 0.16), transparent 30%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.12), transparent 28%),
        linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.auth-shell {
    width: 100%;
    max-width: 1120px;
    display: grid;
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(17, 24, 39, 0.18);
}

.auth-aside {
    position: relative;
    padding: 3rem;
    color: #ffffff;
    background:
        linear-gradient(160deg, rgba(79, 70, 229, 0.96) 0%, rgba(67, 56, 202, 0.96) 48%, rgba(31, 41, 55, 0.98) 100%);
}

.auth-aside::before {
    content: "";
    position: absolute;
    inset: auto -40px -40px auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.auth-aside::after {
    content: "";
    position: absolute;
    inset: 32px auto auto -32px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.auth-aside > * {
    position: relative;
    z-index: 1;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.auth-brand-icon {
    width: 4rem;
    height: 4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    font-size: 1.6rem;
}

.auth-eyebrow {
    display: inline-block;
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.auth-brand h1,
.auth-panel-header h2 {
    margin: 0;
    line-height: 1.1;
}

.auth-brand h1 {
    font-size: 2rem;
    font-weight: 700;
}

.auth-aside-copy {
    margin: 0 0 2rem;
    max-width: 28rem;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.84);
}

.auth-feature-list,
.auth-step-list {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.auth-feature-item,
.auth-step-item {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    backdrop-filter: blur(6px);
}

.auth-feature-icon,
.auth-step-number {
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.95rem;
    font-weight: 700;
}

.auth-feature-item strong,
.auth-step-item strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.auth-feature-item span,
.auth-step-item span {
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.74);
}

.auth-aside-footer {
    margin-top: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    background: rgba(17, 24, 39, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.9rem;
}

.auth-panel {
    padding: 3rem;
    background: #ffffff;
}

.auth-panel-inner {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-panel-header {
    margin-bottom: 2rem;
}

.auth-panel-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.auth-panel-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.65;
}

.auth-alert {
    display: flex;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    margin-bottom: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(239, 68, 68, 0.18);
    background: rgba(239, 68, 68, 0.08);
    color: #991b1b;
}

.auth-alert i {
    font-size: 1.1rem;
    margin-top: 0.1rem;
}

.auth-form {
    display: grid;
    gap: 1.25rem;
}

.auth-field {
    display: grid;
    gap: 0.55rem;
}

.auth-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.auth-input-wrap {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.auth-input {
    width: 100%;
    min-height: 3.35rem;
    padding: 0.9rem 1rem 0.9rem 2.85rem;
    border: 1px solid var(--border-color);
    border-radius: 0.9rem;
    background: #f9fafb;
    color: var(--text-primary);
    font-size: 0.96rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.auth-code-input {
    padding-left: 1rem;
    text-align: center;
    font-size: 1.7rem;
    letter-spacing: 0.5rem;
    font-weight: 700;
    font-family: ui-monospace, SFMono-Regular, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
}

.auth-validation {
    font-size: 0.85rem;
}

.auth-submit-btn,
.auth-secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 3.35rem;
    border-radius: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.auth-submit-btn {
    width: 100%;
    border: none;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.24);
}

.auth-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 30px rgba(79, 70, 229, 0.28);
}

.auth-secondary-link {
    width: 100%;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    background: #ffffff;
}

.auth-secondary-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.08);
}

.auth-actions {
    display: grid;
    gap: 0.85rem;
}

.auth-help-card {
    margin-bottom: 1.5rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(79, 70, 229, 0.12);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.05) 0%, rgba(255, 255, 255, 0.95) 100%);
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

.auth-help-card strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.auth-panel-footer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-panel-footer i {
    color: var(--primary-color);
}

@media (max-width: 991.98px) {
    .auth-shell {
        grid-template-columns: 1fr;
        max-width: 680px;
    }

    .auth-aside,
    .auth-panel {
        padding: 2.25rem;
    }
}

@media (max-width: 575.98px) {
    .auth-page {
        padding: 1rem;
    }

    .auth-aside,
    .auth-panel {
        padding: 1.5rem;
    }

    .auth-brand {
        align-items: flex-start;
    }

    .auth-brand h1,
    .auth-panel-header h2 {
        font-size: 1.65rem;
    }

    .auth-code-input {
        font-size: 1.45rem;
        letter-spacing: 0.35rem;
    }
}
