:root {
    --ap-blue-950: #284ea9;
    --ap-blue-800: #3b63cb;
    --ap-blue-600: #5d85e8;
    --ap-gold-500: #f2ba30;
    --ap-gold-400: #ffd86c;
    --ap-ink-900: #11183f;
    --ap-ink-700: #404a76;
    --ap-ink-500: #6f7698;
    --ap-border: #d9e0f2;
    --ap-shadow-lg: 0 26px 60px rgba(36, 65, 153, 0.16);
    --ap-shadow-md: 0 14px 28px rgba(41, 69, 161, 0.11);
    --ap-radius-xl: 30px;
    --ap-radius-lg: 18px;
    --ap-radius-md: 12px;
}

.auth-premium-wrap {
    min-height: 100vh;
    padding: 58px 0;
    background:
        radial-gradient(circle at 85% 12%, rgba(255, 215, 107, 0.25), transparent 34%),
        radial-gradient(circle at 8% 4%, rgba(176, 203, 255, 0.3), transparent 38%),
        linear-gradient(142deg, #f9fbff 0%, #eef3ff 55%, #f7f2e8 100%);
}

.auth-premium-login {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 22px;
    align-items: stretch;
}

.auth-premium-panel,
.auth-premium-form-card {
    border-radius: var(--ap-radius-xl);
    border: 1px solid #d8e2f7;
    background: #ffffff;
    color: var(--ap-ink-900);
    box-shadow: var(--ap-shadow-lg);
}

.auth-premium-panel {
    padding: 34px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(140deg, #f8fbff 0%, #e9f1ff 58%, #f8f1df 100%);
}

.auth-premium-panel::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    right: -60px;
    bottom: -120px;
    border-radius: 999px;
    background: rgba(107, 146, 233, 0.16);
}

.auth-premium-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 10px 14px;
    margin-bottom: 16px;
    border: 1px solid #c8d7fa;
    background: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.auth-premium-chip i {
    color: var(--ap-gold-400);
}

.auth-premium-panel h1 {
    margin: 0 0 10px;
    font-size: clamp(1.7rem, 4vw, 2.85rem);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.auth-premium-panel p {
    margin: 0 0 16px;
    color: var(--ap-ink-700);
    line-height: 1.7;
}

.auth-premium-points {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.auth-premium-points div {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border-radius: 12px;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid #d4dff7;
    font-weight: 700;
}

.auth-premium-points i {
    color: #3d61c6;
}

.auth-premium-form-card {
    background: #fff;
    border-color: var(--ap-border);
    color: var(--ap-ink-900);
    padding: 28px;
}

.auth-premium-form-card h2 {
    margin: 0 0 18px;
    font-size: 1.5rem;
    color: var(--ap-ink-900);
}

.auth-premium-alert {
    border-radius: 12px;
    border: 1px solid transparent;
    padding: 10px 12px;
    font-weight: 600;
    margin-bottom: 14px;
}

.auth-premium-alert.error {
    color: #842029;
    background: #fde9ec;
    border-color: #f8c9d2;
}

.auth-premium-alert.success {
    color: #0f5132;
    background: #e7f7ee;
    border-color: #b7e5c9;
}

.auth-premium-field {
    margin-bottom: 14px;
}

.auth-premium-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ap-ink-500);
    margin-bottom: 6px;
}

.auth-premium-field input,
.auth-premium-field select,
.auth-premium-field textarea {
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
    border: 1px solid #d4dbed;
    background: #f8faff;
    color: var(--ap-ink-900);
    padding: 0 13px;
    font-weight: 600;
}

.auth-premium-field textarea {
    padding-top: 11px;
    padding-bottom: 11px;
}

.auth-premium-field input:focus,
.auth-premium-field select:focus,
.auth-premium-field textarea:focus {
    outline: none;
    border-color: #7c96ef;
    box-shadow: 0 0 0 4px rgba(101, 132, 224, 0.16);
}

.auth-premium-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 8px 0 16px;
    color: var(--ap-ink-700);
}

.auth-premium-inline .form-check {
    margin: 0;
}

.auth-premium-link {
    color: #2a4fb6;
    font-weight: 700;
    text-decoration: none;
}

.auth-premium-link:hover {
    color: #1f3f9b;
    text-decoration: underline;
}

.auth-premium-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
    border: none;
    text-decoration: none;
    background: linear-gradient(135deg, #f5c64d 0%, #eead1f 100%);
    color: #382400;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 12px 22px rgba(238, 173, 31, 0.36);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-premium-btn:hover {
    color: #2d1d00;
    transform: translateY(-2px);
    box-shadow: 0 15px 26px rgba(238, 173, 31, 0.42);
}

.auth-premium-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 12px;
    border: 1px solid #b6c4ee;
    text-decoration: none;
    color: #2f4da8;
    font-weight: 700;
    padding: 0 18px;
    background: #fff;
}

.auth-premium-secondary-btn:hover {
    color: #1f388a;
    border-color: #7d96e8;
}

.auth-premium-footer {
    margin-top: 14px;
    text-align: center;
    color: var(--ap-ink-700);
}

.auth-premium-choice {
    min-height: 100vh;
    padding: 56px 0;
    background:
        radial-gradient(circle at 88% 14%, rgba(255, 212, 92, 0.22), transparent 36%),
        radial-gradient(circle at 10% 2%, rgba(173, 197, 255, 0.28), transparent 38%),
        linear-gradient(138deg, #f9fbff 0%, #edf3ff 58%, #f7f2e6 100%);
}

.auth-premium-choice-header {
    max-width: 760px;
    margin: 0 auto 28px;
    text-align: center;
    color: var(--ap-ink-900);
}

.auth-premium-choice-header h1 {
    margin: 0 0 10px;
    font-size: clamp(1.9rem, 3.9vw, 3rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.auth-premium-choice-header p {
    margin: 0;
    color: var(--ap-ink-700);
}

.auth-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.auth-choice-card {
    border-radius: 22px;
    padding: 26px;
    border: 1px solid #d8e2f7;
    background: #ffffff;
    box-shadow: var(--ap-shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-choice-card h2 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--ap-ink-900);
}

.auth-choice-card p {
    margin: 0;
    color: var(--ap-ink-700);
}

.auth-choice-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    background: linear-gradient(135deg, #2749ba 0%, #4c72e9 100%);
}

.auth-choice-card.is-customer .auth-choice-icon {
    background: linear-gradient(135deg, #1f9c67 0%, #3fc281 100%);
}

.auth-choice-list {
    margin: 2px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.auth-choice-list li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ap-ink-700);
    font-weight: 600;
}

.auth-choice-list i {
    color: #2f57cb;
}

.auth-choice-card.is-customer .auth-choice-list i {
    color: #17905f;
}

.auth-choice-actions {
    margin-top: auto;
}

.auth-choice-actions .auth-premium-btn {
    width: 100%;
}

.auth-choice-card.is-customer .auth-premium-btn {
    background: linear-gradient(135deg, #38b97d 0%, #19965f 100%);
    color: #f3fffa;
    box-shadow: 0 12px 22px rgba(25, 150, 95, 0.32);
}

.auth-choice-card.is-customer .auth-premium-btn:hover {
    color: #fff;
}

.auth-choice-footer {
    margin-top: 16px;
    text-align: center;
    color: var(--ap-ink-700);
}

.auth-choice-footer .auth-premium-link {
    color: #2a4fb6;
}

.auth-choice-footer .auth-premium-link:hover {
    color: #1f3f9b;
}

.auth-container.auth-premium-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 84% 13%, rgba(253, 222, 129, 0.2), transparent 40%),
        linear-gradient(180deg, #f5f8ff 0%, #edf2ff 100%);
}

.auth-container.auth-premium-page .section-title {
    color: #1e337f;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.auth-container.auth-premium-page .section-subtitle {
    color: var(--ap-ink-700);
}

.auth-container.auth-premium-page .auth-card {
    border-radius: 22px;
    border: 1px solid #d5def3;
    box-shadow: var(--ap-shadow-md);
    background: #fff;
}

.auth-container.auth-premium-page .section-header {
    color: #1f3f9b;
    border-bottom-color: #bed0ff;
}

.auth-container.auth-premium-page .btn-navigation,
.auth-container.auth-premium-page .btn-auth {
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #f4c64f 0%, #eeaf20 100%);
    color: #342300;
    font-weight: 800;
    box-shadow: 0 12px 22px rgba(238, 173, 31, 0.3);
}

.auth-container.auth-premium-page .btn-navigation:hover,
.auth-container.auth-premium-page .btn-auth:hover {
    color: #2a1d00;
}

.auth-container.auth-premium-page .progress-container {
    border-radius: 18px;
    border: 1px solid #d7e0f4;
    box-shadow: var(--ap-shadow-md);
}

.auth-container.auth-premium-page .step-number.active {
    background: linear-gradient(135deg, #2348bb 0%, #4f72e9 100%);
}

.auth-container.auth-premium-page .step-number.completed {
    background: linear-gradient(135deg, #29a66f 0%, #1f8f5f 100%);
}

.auth-container.auth-premium-page .progress-line-fill {
    background: linear-gradient(90deg, #1f4abf 0%, #4e71e7 100%);
}

.auth-container.auth-premium-page .form-control,
.auth-container.auth-premium-page .form-select,
.auth-container.auth-premium-page .select2-container--bootstrap-5 .select2-selection {
    border-color: #d6deef;
    background: #f9fbff;
}

.auth-container.auth-premium-page .form-control:focus,
.auth-container.auth-premium-page .form-select:focus {
    border-color: #84a0ef;
    box-shadow: 0 0 0 4px rgba(84, 116, 214, 0.14);
}

@media (max-width: 991px) {
    .auth-premium-login {
        grid-template-columns: 1fr;
    }

    .auth-premium-panel,
    .auth-premium-form-card {
        border-radius: 22px;
    }

    .auth-choice-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .auth-premium-wrap,
    .auth-premium-choice {
        padding: 36px 0;
    }

    .auth-premium-panel,
    .auth-premium-form-card,
    .auth-choice-card {
        padding: 20px;
    }

    .auth-premium-panel h1 {
        font-size: 1.75rem;
    }
}
