/* =========================================================
   ASSOCIATOR CREATE
   Dashboard Master
========================================================= */


/* =========================================================
   PAGE
========================================================= */

.ac-page {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
   
    box-sizing: border-box;
}


/* =========================================================
   BACK BUTTON
========================================================= */

.ac-back-wrapper {
    margin-bottom: 18px;
}

.ac-back-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 0 4px 0 !important;
    padding: 8px 18px !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    font-family: "Plus Jakarta Sans", "Inter", sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.06) !important;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.ac-back-button:hover {
    background: #eff6ff !important;
    color: #2563eb !important;
    border-color: #60a5fa !important;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.18) !important;
    transform: translateX(-4px) !important;
}

.ac-back-arrow {
    font-size: 17px;
    line-height: 1;
}


/* =========================================================
   HERO
========================================================= */

.ac-hero {
    position: relative;
    overflow: hidden;

    min-height: 190px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 34px 38px;

    border-radius: 18px;

    background:
        radial-gradient(
            circle at 92% 12%,
            rgba(37, 99, 235, 0.30),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #020617 0%,
            #0b1730 52%,
            #172554 100%
        );

    box-shadow:
        0 12px 30px rgba(15, 23, 42, 0.12);

    box-sizing: border-box;
}

.ac-hero-content {
    position: relative;
    z-index: 3;

    max-width: 700px;
}

.ac-eyebrow {
    margin-bottom: 9px;

    color: #93c5fd;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ac-hero h1 {
    margin: 0 0 10px;

    color: #ffffff;

    font-size: 30px;
    line-height: 1.2;
    font-weight: 750;

    letter-spacing: -0.025em;
}

.ac-hero p {
    margin: 0;

    max-width: 650px;

    color: #cbd5e1;

    font-size: 14px;
    line-height: 1.65;
}


/* =========================================================
   HERO DECORATION
========================================================= */

.ac-hero-decoration {
    position: absolute;
    inset: 0;

    pointer-events: none;
}

.ac-decoration-circle {
    position: absolute;

    border: 1px solid rgba(147, 197, 253, 0.14);

    border-radius: 50%;
}

.ac-circle-one {
    width: 220px;
    height: 220px;

    right: -70px;
    top: -100px;
}

.ac-circle-two {
    width: 130px;
    height: 130px;

    right: 85px;
    bottom: -80px;

    border-color: rgba(96, 165, 250, 0.10);
}


/* =========================================================
   ALERT
========================================================= */

.ac-alert {
    display: flex;
    align-items: flex-start;
    gap: 13px;

    margin-top: 20px;
    padding: 15px 17px;

    border-radius: 12px;

    box-sizing: border-box;
}

.ac-alert-icon {
    flex: 0 0 28px;

    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 13px;
    font-weight: 800;
}

.ac-alert-content {
    display: flex;
    flex-direction: column;
    gap: 3px;

    min-width: 0;
}

.ac-alert-content strong {
    font-size: 13px;
    font-weight: 700;
}

.ac-alert-content span {
    font-size: 13px;
    line-height: 1.5;
}


/* ERROR */

.ac-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.ac-alert-error .ac-alert-icon {
    background: #fee2e2;
    color: #b91c1c;
}

.ac-alert-error .ac-alert-content strong {
    color: #991b1b;
}

.ac-alert-error .ac-alert-content span {
    color: #b91c1c;
}


/* SUCCESS */

.ac-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.ac-alert-success .ac-alert-icon {
    background: #dcfce7;
    color: #15803d;
}

.ac-alert-success .ac-alert-content strong {
    color: #166534;
}

.ac-alert-success .ac-alert-content span {
    color: #15803d;
}


/* =========================================================
   ASSOCIATOR CODE CARD
========================================================= */

.ac-code-card {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-top: 14px;
    padding: 17px 19px;

    background: #eff6ff;

    border: 1px solid #bfdbfe;
    border-radius: 12px;

    box-sizing: border-box;
}

.ac-code-icon {
    flex: 0 0 40px;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #dbeafe;
    color: #2563eb;

    font-size: 18px;
    font-weight: 800;
}

.ac-code-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ac-code-label {
    color: #64748b;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.09em;
}

.ac-code-value {
    color: #1d4ed8;

    font-size: 18px;
    font-weight: 800;

    letter-spacing: 0.06em;
}


/* =========================================================
   FORM CARD
========================================================= */

.ac-form-card {
    margin-top: 22px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 16px;

    box-shadow:
        0 6px 20px rgba(15, 23, 42, 0.05);

    overflow: hidden;
}


/* =========================================================
   CARD HEADER
========================================================= */

.ac-card-header {
    display: flex;
    align-items: center;
    gap: 15px;

    padding: 24px 27px;

    border-bottom: 1px solid #edf2f7;

    background: #ffffff;
}

.ac-card-header-icon {
    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: #eff6ff;
    color: #2563eb;

    font-size: 22px;
    font-weight: 500;
}

.ac-card-header h2 {
    margin: 0 0 4px;

    color: #0f172a;

    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
}

.ac-card-header p {
    margin: 0;

    color: #64748b;

    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   FORM
========================================================= */

.ac-form {
    padding: 27px;
}

.ac-form-group {
    margin-bottom: 20px;
}

.ac-form-group label {
    display: block;

    margin-bottom: 8px;

    color: #334155;

    font-size: 13px;
    line-height: 1.4;
    font-weight: 650;
}

.ac-form-group label span {
    color: #2563eb;
    margin-left: 2px;
}

.ac-form-group input,
.ac-form-group textarea,
.ac-form-group select {
    width: 100%;

    min-height: 44px;

    padding: 0 13px;

    background: #ffffff;

    border: 1px solid #cbd5e1;
    border-radius: 9px;

    color: #0f172a;

    font-family: inherit;
    font-size: 13px;

    outline: none;

    box-sizing: border-box;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.ac-form-group input::placeholder,
.ac-form-group textarea::placeholder {
    color: #94a3b8;
}

.ac-form-group input:hover,
.ac-form-group textarea:hover,
.ac-form-group select:hover {
    border-color: #94a3b8;
}

.ac-form-group input:focus,
.ac-form-group textarea:focus,
.ac-form-group select:focus {
    background: #ffffff;

    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.10);
}

.ac-form-group input:disabled,
.ac-form-group textarea:disabled,
.ac-form-group select:disabled {
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
}

.ac-form-group small {
    display: block;

    margin-top: 6px;

    color: #94a3b8;

    font-size: 11px;
    line-height: 1.4;
}


/* =========================================================
   TWO COLUMN PASSWORD
========================================================= */

.ac-form-row {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.ac-form-row .ac-form-group {
    min-width: 0;
}


/* =========================================================
   FORM FOOTER
========================================================= */

.ac-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-top: 7px;
    padding-top: 21px;

    border-top: 1px solid #edf2f7;
}

.ac-required-info {
    color: #94a3b8;

    font-size: 11px;
}

.ac-required-info span {
    color: #2563eb;
    font-weight: 700;
}


/* =========================================================
   BUTTONS
========================================================= */

.ac-button-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.ac-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 42px;

    padding: 0 17px;

    border-radius: 9px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 650;

    text-decoration: none;

    box-sizing: border-box;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}


/* SECONDARY */

.ac-btn-secondary {
    background: #ffffff;

    border: 1px solid #dbe3ed;

    color: #475569;
}

.ac-btn-secondary:hover {
    background: #f8fafc;

    border-color: #cbd5e1;

    color: #0f172a;
}


/* PRIMARY */

.ac-btn-primary {
    background: #2563eb;

    border: 1px solid #2563eb;

    color: #ffffff;
}

.ac-btn-primary:hover {
    background: #1d4ed8;

    border-color: #1d4ed8;

    box-shadow:
        0 5px 12px rgba(37, 99, 235, 0.20);

    transform: translateY(-1px);
}

.ac-btn-primary:active {
    transform: translateY(0);
}

.ac-btn-plus {
    font-size: 17px;
    line-height: 1;
    font-weight: 400;
}


/* =========================================================
   ACCESS ERROR
========================================================= */

.ac-access-error {
    max-width: 520px;

    margin: 60px auto;

    padding: 35px;

    text-align: center;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 16px;

    box-shadow:
        0 8px 25px rgba(15, 23, 42, 0.06);
}

.ac-access-icon {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 15px;

    border-radius: 50%;

    background: #fef2f2;
    color: #dc2626;

    font-size: 18px;
    font-weight: 800;
}

.ac-access-error h2 {
    margin: 0 0 7px;

    color: #0f172a;

    font-size: 20px;
}

.ac-access-error p {
    margin: 0;

    color: #64748b;

    font-size: 13px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .ac-page {
        padding: 24px 22px 40px;
    }

    .ac-hero {
        padding: 30px;
    }

    .ac-hero h1 {
        font-size: 27px;
    }

    .ac-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}


@media (max-width: 700px) {

    .ac-page {
        padding: 20px 16px 35px;
    }

    .ac-hero {
        min-height: auto;

        padding: 27px 24px;

        border-radius: 15px;
    }

    .ac-hero h1 {
        font-size: 24px;
    }

    .ac-hero p {
        font-size: 13px;
    }

    .ac-circle-one {
        width: 170px;
        height: 170px;

        right: -75px;
        top: -80px;
    }

    .ac-form {
        padding: 22px;
    }

    .ac-card-header {
        padding: 21px 22px;
    }

    .ac-form-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .ac-button-row {
        width: 100%;
    }

    .ac-button-row .ac-btn {
        flex: 1;
    }
}


@media (max-width: 480px) {

    .ac-page {
        padding: 16px 12px 30px;
    }

    .ac-back-button {
        min-height: 36px;
        padding: 0 12px;
    }

    .ac-hero {
        padding: 23px 20px;
    }

    .ac-eyebrow {
        font-size: 10px;
    }

    .ac-hero h1 {
        font-size: 22px;
    }

    .ac-hero p {
        font-size: 12px;
        line-height: 1.55;
    }

    .ac-form-card {
        border-radius: 13px;
    }

    .ac-card-header {
        align-items: flex-start;

        padding: 19px;
    }

    .ac-card-header-icon {
        flex: 0 0 37px;

        width: 37px;
        height: 37px;
    }

    .ac-card-header h2 {
        font-size: 16px;
    }

    .ac-card-header p {
        font-size: 12px;
    }

    .ac-form {
        padding: 19px;
    }

    .ac-form-group input,
    .ac-form-group textarea,
    .ac-form-group select {
        min-height: 42px;
    }

    .ac-button-row {
        flex-direction: column-reverse;
        width: 100%;
    }

    .ac-button-row .ac-btn {
        width: 100%;
    }

    .ac-code-card {
        padding: 15px;
    }

    .ac-code-value {
        font-size: 16px;
    }
}


/* =========================================================
   DARK MODE OVERRIDES FOR ASSOCIATOR CREATE PAGE
   ========================================================= */

html.theme-dark .ac-back-button {
    background: #182854 !important;
    border: 1px solid rgba(99, 102, 241, 0.35) !important;
    color: #a5b4fc !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

html.theme-dark .ac-back-button:hover {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #60a5fa !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45) !important;
    transform: translateX(-4px) !important;
}

html.theme-dark .ac-hero {
    background: radial-gradient(circle at 92% 12%, rgba(37, 99, 235, 0.30), transparent 34%), linear-gradient(135deg, #020617 0%, #0b1730 52%, #172554 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4) !important;
}

html.theme-dark .ac-eyebrow {
    color: #38bdf8 !important;
}

html.theme-dark .ac-hero h1 {
    color: #ffffff !important;
}

html.theme-dark .ac-hero p {
    color: #94a3b8 !important;
}

html.theme-dark .ac-form-card {
    background: #0d1527 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5) !important;
}

html.theme-dark .ac-card-header {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18) 0%, rgba(15, 23, 42, 0.7) 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 24px 28px !important;
}

html.theme-dark .ac-card-header-icon {
    background: rgba(59, 130, 246, 0.2) !important;
    border: 1px solid rgba(96, 165, 250, 0.4) !important;
    color: #60a5fa !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

html.theme-dark .ac-card-header h2 {
    color: #ffffff !important;
    font-size: 18px !important;
}

html.theme-dark .ac-card-header p {
    color: #a5b4fc !important;
}

html.theme-dark .ac-form {
    background: transparent !important;
}

html.theme-dark .ac-form-group label {
    color: #e2e8f0 !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
}

html.theme-dark .ac-form-group label span {
    color: #60a5fa !important;
}

html.theme-dark .ac-form-group input,
html.theme-dark .ac-form-group textarea,
html.theme-dark .ac-form-group select {
    background: #18264a !important;
    border: 1px solid rgba(147, 197, 253, 0.25) !important;
    color: #ffffff !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    font-weight: 600 !important;
}

html.theme-dark .ac-form-group input::placeholder,
html.theme-dark .ac-form-group textarea::placeholder {
    color: #64748b !important;
}

html.theme-dark .ac-form-group input:hover,
html.theme-dark .ac-form-group textarea:hover,
html.theme-dark .ac-form-group select:hover {
    border-color: rgba(147, 197, 253, 0.5) !important;
    background: #1e305e !important;
}

html.theme-dark .ac-form-group input:focus,
html.theme-dark .ac-form-group textarea:focus,
html.theme-dark .ac-form-group select:focus {
    background: #1f3261 !important;
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

html.theme-dark .ac-form-group small {
    color: #94a3b8 !important;
}

html.theme-dark .ac-form-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html.theme-dark .ac-required-info {
    color: #94a3b8 !important;
}

html.theme-dark .ac-required-info span {
    color: #60a5fa !important;
}

html.theme-dark .ac-btn-secondary {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #f1f5f9 !important;
    font-weight: 700 !important;
}

html.theme-dark .ac-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
}

html.theme-dark .ac-btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    border: 1px solid #60a5fa !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4) !important;
    font-weight: 800 !important;
}

html.theme-dark .ac-btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.55) !important;
}

html.theme-dark .ac-code-card {
    background: rgba(168, 85, 247, 0.15) !important;
    border: 1px solid rgba(192, 132, 252, 0.35) !important;
}

html.theme-dark .ac-code-icon {
    background: rgba(168, 85, 247, 0.25) !important;
    color: #c084fc !important;
}

html.theme-dark .ac-code-label {
    color: #c084fc !important;
}

html.theme-dark .ac-code-value {
    color: #ffffff !important;
}

html.theme-dark .ac-access-error {
    background: #0d1527 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

html.theme-dark .ac-access-error h2 {
    color: #ffffff !important;
}

html.theme-dark .ac-access-error p {
    color: #94a3b8 !important;
}