/* Shared Identity pages */

.identity-page {
    width: 100%;
    max-width: 1040px;
    margin: 2.5rem auto 4rem;
}

.identity-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
    overflow: hidden;
    background: #fff;
    border: 1px solid #e1e7f0;
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(30, 41, 59, 0.12);
}

.identity-introduction {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 650px;
    padding: 3rem;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(
            circle at 92% 10%,
            rgba(255, 255, 255, 0.2),
            transparent 30%
        ),
        linear-gradient(145deg, #312e81 0%, #4f46e5 55%, #7c3aed 100%);
}

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

.identity-introduction::before {
    top: -120px;
    right: -140px;
    width: 380px;
    height: 380px;
}

.identity-introduction::after {
    top: -65px;
    right: -85px;
    width: 270px;
    height: 270px;
}

.identity-introduction-content,
.identity-introduction-footer {
    position: relative;
    z-index: 1;
}

.identity-eyebrow {
    margin-bottom: 1rem;
    color: #c7d2fe;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.identity-introduction h1 {
    max-width: 480px;
    margin-bottom: 1.25rem;
    color: #fff;
    font-size: clamp(2.25rem, 5vw, 3.7rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.identity-introduction-description {
    max-width: 470px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.06rem;
    line-height: 1.75;
}

.identity-benefits {
    display: grid;
    gap: 0.9rem;
    margin-top: 2.25rem;
    padding: 0;
    list-style: none;
}

.identity-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 650;
}

.identity-check {
    display: grid;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.identity-introduction-footer {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.9rem;
}

.identity-form-panel {
    display: flex;
    align-items: center;
    padding: 3rem;
}

.identity-form-content {
    width: 100%;
    max-width: 390px;
    margin: auto;
}

.identity-form-heading {
    margin-bottom: 2rem;
}

.identity-form-heading h2 {
    margin-bottom: 0.6rem;
    color: #0f172a;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.identity-form-heading p {
    margin: 0;
    color: #64748b;
    line-height: 1.65;
}

.identity-form-group {
    margin-bottom: 1.2rem;
}

.identity-form-group .form-label {
    margin-bottom: 0.5rem;
    color: #1e293b;
    font-size: 0.92rem;
    font-weight: 750;
}

.identity-form-group .form-control {
    min-height: 54px;
    padding: 0.85rem 1rem;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #fff;
}

.identity-form-group .form-control::placeholder {
    color: #94a3b8;
}

.identity-form-group .form-control:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.13);
}

.identity-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0.25rem 0 1.5rem;
}

.identity-remember {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    color: #475569;
    cursor: pointer;
}

.identity-remember .form-check-input {
    width: 1.15rem;
    height: 1.15rem;
    margin: 0;
}

.identity-link {
    color: #4f46e5;
    font-weight: 700;
    text-decoration: none;
}

.identity-link:hover {
    color: #3730a3;
    text-decoration: underline;
}

.identity-submit {
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 14px;
    font-weight: 800;
    box-shadow: 0 12px 25px rgba(79, 70, 229, 0.22);
}

.identity-submit:hover {
    transform: translateY(-1px);
}

.identity-secondary-links {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.identity-secondary-links p {
    margin-bottom: 0.7rem;
    color: #64748b;
}

.identity-secondary-links p:last-child {
    margin-bottom: 0;
}

.identity-validation-summary:empty {
    display: none;
}

.identity-validation-summary {
    margin-bottom: 1.25rem;
    padding: 0.85rem 1rem;
    color: #b42318;
    border: 1px solid #fecaca;
    border-radius: 12px;
    background: #fff1f2;
    font-size: 0.9rem;
}

.identity-validation-summary ul {
    margin: 0;
    padding-left: 1.1rem;
}

.identity-field-error {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.84rem;
}

.identity-password-help {
    margin: -0.55rem 0 1.25rem;
    color: #64748b;
    font-size: 0.84rem;
    line-height: 1.55;
}

@media (max-width: 991.98px) {
    .identity-page {
        margin-top: 1.5rem;
    }

    .identity-shell {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: auto;
    }

    .identity-introduction {
        min-height: auto;
        padding: 2.25rem;
    }

    .identity-introduction h1 {
        max-width: 420px;
        font-size: 2.5rem;
    }

    .identity-benefits,
    .identity-introduction-footer {
        display: none;
    }

    .identity-form-panel {
        padding: 2.25rem;
    }

    .identity-form-content {
        max-width: none;
    }
}

@media (max-width: 575.98px) {
    .identity-page {
        margin: 0.75rem auto 2rem;
    }

    .identity-shell {
        border-radius: 22px;
    }

    .identity-introduction {
        padding: 1.7rem 1.35rem;
    }

    .identity-introduction h1 {
        margin-bottom: 0.75rem;
        font-size: 2rem;
    }

    .identity-introduction-description {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .identity-form-panel {
        padding: 1.75rem 1.35rem 2rem;
    }

    .identity-form-heading {
        margin-bottom: 1.5rem;
    }

    .identity-form-heading h2 {
        font-size: 1.65rem;
    }

    .identity-form-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.75rem;
    }
}
/* Compact Identity messages */

.identity-page-compact {
    max-width: 720px;
}

.identity-card {
    padding: 3rem;
    text-align: center;
    background: #fff;
    border: 1px solid #e1e7f0;
    border-radius: 26px;
    box-shadow: 0 20px 55px rgba(30, 41, 59, 0.1);
}

.identity-card .identity-message-icon svg {
    display: block;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    max-width: 34px;
    max-height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.identity-message-symbol {
    display: block;
    color: #4f46e5;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}
.identity-card h1 {
    margin-bottom: 0.8rem;
    color: #0f172a;
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.035em;
}

.identity-card-description {
    max-width: 540px;
    margin: 0 auto 1.75rem;
    color: #64748b;
    line-height: 1.7;
}

.identity-card-form {
    max-width: 420px;
    margin: 2rem auto 0;
    text-align: left;
}

.identity-card-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.75rem;
}

@media (max-width: 575.98px) {
    .identity-card {
        padding: 2rem 1.25rem;
        border-radius: 22px;
    }

    .identity-card-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .identity-card-actions .btn {
        width: 100%;
    }
}

