.auth-template-wrap {
    min-height: calc(100vh - 92px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    overflow: hidden;
}

.auth-template-card {
    width: min(980px, 94vw);
    min-height: min(520px, calc(100vh - 130px));
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 26px 56px rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(10px);
}

.auth-template-left {
    padding: 30px 28px;
    background: linear-gradient(160deg, #dbeafe 0%, #eff6ff 45%, #e0e7ff 100%);
    border-right: 1px solid rgba(148, 163, 184, 0.2);
    display: grid;
    align-content: center;
    gap: 16px;
}

.auth-visual-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(140deg, #3b82f6, #6366f1);
    box-shadow: 0 14px 28px rgba(59, 130, 246, 0.36);
}

.auth-template-left h2 {
    margin: 0;
    color: #0f172a;
    font-size: 28px;
}

.auth-template-left p {
    margin: 0;
    color: #334155;
    line-height: 1.7;
    font-size: 15px;
}

.auth-template-right {
    padding: 24px 34px;
    display: grid;
    align-content: start;
}

.auth-sub-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.auth-sub-tabs a {
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 999px;
    color: #475569;
    background: #f1f5f9;
}

.auth-sub-tabs a.active {
    color: #fff;
    background: linear-gradient(90deg, #3b82f6, #6366f1);
}

.auth-title {
    margin: 4px 0 10px;
    font-size: 22px;
    color: #0f172a;
}

.auth-template-right .auth-input {
    border: 1px solid #dbe2ee;
    border-radius: 10px;
    padding: 11px 12px;
    transition: all .2s ease;
}

.auth-template-right .auth-input:focus {
    border-color: #60a5fa;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.auth-template-right .auth-btn {
    width: 100%;
    border-radius: 10px;
    padding: 11px 14px;
    background: linear-gradient(90deg, #3b82f6, #4f46e5);
}

.auth-template-right .auth-btn.secondary {
    width: auto;
    background: #0f172a;
}

.auth-template-right label {
    display: grid;
    gap: 7px;
    margin-bottom: 9px;
    color: #334155;
    font-size: 13px;
}

.auth-template-right .auth-inline {
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.auth-code-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
}

.auth-code-row .auth-btn {
    width: auto;
    padding: 11px 12px;
    white-space: nowrap;
}

.auth-code-row .auth-btn:disabled {
    opacity: .72;
    cursor: not-allowed;
}

.auth-foot-links {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    font-size: 13px;
}

.auth-foot-links a {
    color: #2563eb;
    text-decoration: none;
}

.auth-template-right .auth-error,
.auth-template-right .auth-info {
    margin-bottom: 10px;
}

@media (max-width: 860px) {
    .auth-template-card {
        grid-template-columns: 1fr;
        min-height: unset;
    }

    .auth-template-left {
        padding: 24px 20px;
        gap: 10px;
    }

    .auth-template-right {
        padding: 16px;
    }
}

