.external-activate-page {
    --activate-primary: #174c8f;
    --activate-primary-dark: #0b2f63;
    --activate-accent: #22a7d6;
    --activate-text: #162033;
    --activate-muted: #69778c;
    min-height: 760px;
    padding: 6rem 1.25rem 3rem;
    background:
        radial-gradient(circle at 8% 10%, rgba(34, 167, 214, 0.12), transparent 25%),
        radial-gradient(circle at 92% 85%, rgba(23, 76, 143, 0.1), transparent 28%),
        #f3f7fb;
    color: var(--activate-text);
    height: 92vh;
}

.external-activate-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(440px, 1.05fr);
    width: min(1120px, 100%);
    min-height: 690px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(15, 45, 85, 0.15);
}

.activate-intro {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 2.4rem;
    overflow: hidden;
    background:
        linear-gradient(155deg, rgba(9, 38, 82, 0.98), rgba(23, 76, 143, 0.96)),
        url("../images/doku_pattern.png");
    color: #fff;
}

.activate-intro::before,
.activate-intro::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    content: "";
}

.activate-intro::before {
    top: -170px;
    right: -170px;
    width: 420px;
    height: 420px;
}

.activate-intro::after {
    right: -100px;
    bottom: -170px;
    width: 360px;
    height: 360px;
}

.activate-intro__glow {
    position: absolute;
    top: 10%;
    right: -20%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(34, 167, 214, 0.2);
    filter: blur(70px);
}

.activate-brand,
.activate-intro__content,
.activate-intro__footer {
    position: relative;
    z-index: 1;
}

.activate-brand {
    display: inline-flex;
    align-self: flex-start;
}

.activate-brand img {
    width: auto;
    max-width: 215px;
    height: 58px;
    object-fit: contain;
}

.activate-intro__content {
    margin: auto 0;
    padding: 3rem 0;
}

.activate-eyebrow,
.activate-step {
    display: block;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.activate-eyebrow {
    margin-bottom: 0.8rem;
    color: #86dcf5;
}

.activate-intro h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 3.3vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.12;
}

.activate-intro__content > p {
    max-width: 480px;
    margin: 1.1rem 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.96rem;
    line-height: 1.75;
}

.activate-features {
    display: grid;
    gap: 1rem;
    margin-top: 2.25rem;
}

.activate-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.activate-feature > span {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.09);
    color: #8ce1f7;
}

.activate-feature strong,
.activate-feature small {
    display: block;
}

.activate-feature strong {
    margin-bottom: 0.2rem;
    color: #fff;
    font-size: 0.88rem;
}

.activate-feature small {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.76rem;
    line-height: 1.5;
}

.activate-intro__footer {
    margin: 0;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.72rem;
}

.activate-form-panel {
    display: flex;
    align-items: center;
    padding: 3rem clamp(2rem, 5vw, 4.5rem);
    background:
        radial-gradient(circle at 100% 0, rgba(34, 167, 214, 0.08), transparent 25%),
        #fff;
}

.activate-form-wrap {
    width: 100%;
    max-width: 470px;
    margin: 0 auto;
}

.activate-form-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.activate-form-icon {
    display: inline-flex;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #e6f3ff, #e4f8fb);
    color: var(--activate-primary);
    font-size: 1.25rem;
}

.activate-step {
    margin-bottom: 0.2rem;
    color: var(--activate-accent);
}

.activate-form-heading h2 {
    margin: 0;
    color: var(--activate-text);
    font-size: clamp(1.45rem, 2.3vw, 1.85rem);
    font-weight: 800;
}

.activate-form-description {
    margin: 1.15rem 0 1.7rem;
    color: var(--activate-muted);
    font-size: 0.9rem;
}

.activate-field {
    margin-bottom: 1.15rem;
}

.activate-field label {
    display: block;
    margin-bottom: 0.5rem;
    color: #344258;
    font-size: 0.83rem;
    font-weight: 700;
}

.activate-password-input {
    position: relative;
}

.activate-password-input .form-control {
    height: 50px;
    padding-right: 3.25rem;
    padding-left: 2.85rem;
    border: 1px solid #d7e1ed;
    border-radius: 12px;
    background: #fbfdff;
    color: var(--activate-text);
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.activate-password-input .form-control:focus {
    border-color: #64b4d8;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(34, 167, 214, 0.11);
}

.activate-password-input .form-control::placeholder {
    color: #a0abba;
}

.activate-input-icon,
.activate-password-toggle {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
}

.activate-input-icon {
    left: 1rem;
    color: #93a1b4;
    font-size: 0.82rem;
}

.activate-password-toggle {
    right: 0.55rem;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #718096;
}

.activate-password-toggle:hover,
.activate-password-toggle:focus {
    background: #eef5fb;
    color: var(--activate-primary);
    outline: 0;
}

.activate-password-rules {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
    margin: -0.25rem 0 1.25rem;
    padding: 0.8rem;
    border: 1px solid #e5ecf3;
    border-radius: 12px;
    background: #f8fafc;
}

.activate-password-rules__title {
    grid-column: 1 / -1;
    color: #65748a;
    font-size: 0.72rem;
    font-weight: 700;
}

.activate-rule {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #8a96a6;
    font-size: 0.68rem;
}

.activate-rule i {
    color: #cbd5e1;
    font-size: 0.68rem;
}

.activate-rule.is-valid {
    color: #15803d;
}

.activate-rule.is-valid i {
    color: #22c55e;
}

.activate-field-error,
.activate-match-status {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.73rem;
}

.activate-field-error,
.activate-match-status.is-invalid {
    color: #c53030;
}

.activate-match-status.is-valid {
    color: #15803d;
}

.activate-consent {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin: 0.25rem 0 0;
    color: #59677b;
    font-size: 0.76rem;
    line-height: 1.55;
    cursor: pointer;
}

.activate-consent input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.activate-consent__box {
    display: inline-flex;
    flex: 0 0 21px;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    margin-top: 0.05rem;
    border: 1px solid #c8d4e1;
    border-radius: 6px;
    background: #fff;
    color: transparent;
    font-size: 0.65rem;
    transition: all 0.2s ease;
}

.activate-consent input:checked + .activate-consent__box {
    border-color: var(--activate-primary);
    background: var(--activate-primary);
    color: #fff;
}

.activate-consent input:focus-visible + .activate-consent__box {
    box-shadow: 0 0 0 4px rgba(34, 167, 214, 0.14);
}

.activate-consent-error {
    margin-bottom: 0.25rem;
}

.activate-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
    min-height: 50px;
    margin-top: 1.35rem;
    padding: 0.8rem 1.2rem;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--activate-primary), #1479ae);
    box-shadow: 0 12px 24px rgba(23, 76, 143, 0.22);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.activate-submit:not(:disabled):hover {
    box-shadow: 0 16px 30px rgba(23, 76, 143, 0.28);
    transform: translateY(-1px);
}

.activate-submit:disabled {
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.55;
}

.activate-help {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.3rem;
    color: #8390a1;
    font-size: 0.72rem;
    text-align: center;
}

.activate-help i {
    margin-top: 0.1rem;
}

.activate-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 0.76rem;
    line-height: 1.5;
}

.activate-alert--danger,
.activate-alert.validation-summary-errors {
    border-color: #fecaca;
    background: #fff6f6;
    color: #991b1b;
}

.activate-alert strong,
.activate-alert span {
    display: block;
}

.activate-alert ul {
    margin: 0;
    padding-left: 1rem;
}

.activate-alert.validation-summary-valid {
    display: none;
}

@media (max-width: 991.98px) {
    .external-activate-page {
        padding: 2rem 1rem;
    }

    .external-activate-shell {
        grid-template-columns: 1fr;
        max-width: 680px;
    }

    .activate-intro {
        min-height: auto;
        padding: 2rem;
    }

    .activate-intro__content {
        padding: 2.5rem 0 2rem;
    }

    .activate-features {
        grid-template-columns: repeat(3, 1fr);
    }

    .activate-feature {
        display: block;
    }

    .activate-feature > span {
        margin-bottom: 0.7rem;
    }

    .activate-form-panel {
        padding: 2.5rem 2rem;
    }
}

@media (max-width: 575.98px) {
    .external-activate-page {
        padding: 0;
        background: #fff;
    }

    .external-activate-shell {
        min-height: auto;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .activate-intro,
    .activate-form-panel {
        padding: 1.5rem;
    }

    .activate-brand img {
        height: 48px;
    }

    .activate-intro h1 {
        font-size: 1.85rem;
    }

    .activate-features {
        grid-template-columns: 1fr;
    }

    .activate-feature {
        display: flex;
    }

    .activate-feature > span {
        margin-bottom: 0;
    }

    .activate-intro__footer {
        display: none;
    }

    .activate-form-heading {
        align-items: flex-start;
    }

    .activate-password-rules {
        grid-template-columns: 1fr;
    }
}

.external-account-page {
    min-height: 650px;
}

.external-account-shell {
    display: grid;
    grid-template-columns: minmax(330px, 0.85fr) minmax(430px, 1.15fr);
    width: min(960px, 100%);
    min-height: 560px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(15, 45, 85, 0.15);
}

.external-account-intro {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2.4rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 15%, rgba(34, 167, 214, 0.25), transparent 30%),
        linear-gradient(155deg, #092652, #174c8f);
    color: #fff;
}

.external-account-intro::after {
    position: absolute;
    right: -100px;
    bottom: -120px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    content: "";
}

.external-account-intro__content {
    position: relative;
    z-index: 1;
    margin: auto 0;
    padding: 3rem 0;
}

.external-account-intro h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 3vw, 2.65rem);
    font-weight: 800;
    line-height: 1.15;
}

.external-account-intro__content > p {
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.73);
    font-size: 0.9rem;
    line-height: 1.7;
}

.external-account-security {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-top: 2rem;
    padding: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.75rem;
    line-height: 1.55;
}

.external-account-security i {
    margin-top: 0.15rem;
    color: #8ce1f7;
}

.external-account-form-panel {
    min-width: 0;
}

.external-account-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
}

.external-account-back:hover {
    color: var(--activate-primary);
    text-decoration: none;
}

.external-confirmation {
    text-align: center;
}

.external-confirmation__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 1.25rem;
    border-radius: 22px;
    background: linear-gradient(135deg, #e0f2fe, #dcfce7);
    color: #16835d;
    font-size: 1.7rem;
}

.external-confirmation h2 {
    margin: 0.4rem 0 0;
    color: var(--activate-text);
    font-size: 1.65rem;
    font-weight: 800;
}

.external-confirmation > p {
    margin: 1rem 0;
    color: var(--activate-muted);
    font-size: 0.86rem;
    line-height: 1.65;
}

.external-confirmation__note {
    padding: 0.8rem;
    border-radius: 11px;
    background: #f5f8fb;
    color: #778397;
    font-size: 0.72rem;
    line-height: 1.5;
}

.external-submit-link {
    text-decoration: none;
}

.external-submit-link:hover {
    color: #fff;
    text-decoration: none;
}

@media (max-width: 991.98px) {
    .external-account-shell {
        grid-template-columns: 1fr;
        max-width: 680px;
    }

    .external-account-intro {
        min-height: 330px;
        padding: 2rem;
    }

    .external-account-intro__content {
        padding: 2.5rem 0 1rem;
    }
}

@media (max-width: 575.98px) {
    .external-account-shell {
        min-height: auto;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .external-account-intro {
        min-height: 310px;
        padding: 1.5rem;
    }

    .external-account-form-panel {
        padding: 2.25rem 1.5rem;
    }
}
