.identity-page {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(11, 54, 88, 0.12), transparent 34rem),
        #f4f6f8;
    color: var(--brand-ink);
}

.identity-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
}

.identity-card {
    width: min(100%, 30rem);
    padding: 2rem;
    border: 1px solid var(--brand-border);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 1.25rem 3rem rgba(20, 36, 50, 0.1);
}

.identity-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--brand-ink);
    text-decoration: none;
}

.identity-brand:hover {
    color: var(--brand-ink);
}

.identity-brand img {
    width: 4rem;
    height: auto;
    display: block;
}

.identity-brand span {
    padding-left: 0.85rem;
    border-left: 1px solid var(--brand-border);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.identity-heading {
    margin: 2rem 0 1.5rem;
}

.identity-heading h1 {
    margin-bottom: 0.65rem;
    font-size: clamp(1.75rem, 4vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.identity-heading p:last-child {
    margin: 0;
    color: var(--brand-muted);
}

.identity-form .form-label {
    font-weight: 650;
}

.identity-form .form-control {
    border-color: var(--brand-border);
    border-radius: 0.65rem;
    font-size: 1rem;
}

.identity-form .form-control:focus {
    border-color: var(--brand-primary);
}

.identity-link {
    color: var(--brand-primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.identity-link:hover {
    text-decoration: underline;
}

.identity-divider {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 1.25rem 0;
    color: var(--brand-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.identity-divider::before,
.identity-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--brand-border);
}

.identity-google-button {
    width: 100%;
    min-height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--brand-border);
    border-radius: 0.65rem;
    background: #fff;
    color: var(--brand-ink);
    font-size: 1rem;
    font-weight: 600;
}

.identity-google-button:hover {
    background: #f8f9fa;
    border-color: #aeb8c2;
}

.identity-google-button:focus-visible {
    outline: 3px solid rgba(13, 110, 253, 0.25);
    outline-offset: 2px;
}

.identity-google-button svg {
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
}

.identity-readonly-account {
    margin-bottom: 1.5rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--brand-border);
    border-radius: 0.65rem;
    background: #f8f9fa;
}

.identity-readonly-account span,
.identity-readonly-account strong {
    display: block;
}

.identity-readonly-account span {
    margin-bottom: 0.2rem;
    color: var(--brand-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.identity-readonly-account strong {
    overflow-wrap: anywhere;
}

.identity-help {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--brand-border);
    color: var(--brand-muted);
    font-size: 0.9rem;
    text-align: center;
}

.identity-form .validation-message {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.875rem;
}

.identity-form .validation-summary-valid {
    display: none;
}

@media (max-width: 575.98px) {
    .identity-shell {
        align-items: start;
        padding-top: 1rem;
    }

    .identity-card {
        padding: 1.5rem;
        border-radius: 0.85rem;
    }
}
