/*
 * ThemeWP Account SSO UI V1
 * Child-theme presentation only.
 */

.twp-account-sso-card,
.twp-account-sso-login,
.twp-account-sso-identity {
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    padding: 24px;
    margin: 0 0 24px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, .05);
}

.twp-account-sso-card__header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}

.twp-account-sso-card__header h2,
.twp-account-sso-login h2,
.twp-account-sso-identity h2 {
    margin: 0 0 6px;
    font-size: 22px;
    line-height: 1.3;
}

.twp-account-sso-card__header p,
.twp-account-sso-login > p,
.twp-account-sso-identity > p {
    margin: 0;
    color: #64748b;
}

.twp-account-sso-lock,
.twp-account-sso-login__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #e6f7fb;
    color: #078aa5;
    font-weight: 700;
}

.twp-account-sso-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.twp-account-sso-item {
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 16px;
    background: #f8fafc;
}

.twp-account-sso-item strong,
.twp-account-sso-item small,
.twp-account-sso-label {
    display: block;
}

.twp-account-sso-label {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 5px;
}

.twp-account-sso-item strong {
    color: #0f172a;
    overflow-wrap: anywhere;
}

.twp-account-sso-item small {
    margin-top: 5px;
    color: #64748b;
}

.twp-account-sso-actions {
    margin-top: 18px;
}

.twp-account-sso-primary {
    text-align: center;
}

.twp-account-sso-footnote,
.twp-account-sso-login__note {
    margin: 16px 0 0;
    color: #64748b;
    font-size: 13px;
}

.twp-account-sso-login {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.twp-account-sso-login__icon {
    margin: 0 auto 14px;
}

.twp-account-sso-login__button {
    display: block;
    width: 100%;
    margin-top: 20px;
}

.twp-account-sso-readonly {
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    background: #f8fafc;
    padding: 12px 14px;
    color: #334155;
}

.twp-account-sso-readonly__value {
    display: block;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.twp-account-sso-readonly__meta {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #64748b;
}

.twp-account-sso-security-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 14px 0 22px;
}

.twp-account-sso-section-title {
    margin-top: 26px;
}

@media (max-width: 640px) {
    .twp-account-sso-card,
    .twp-account-sso-login,
    .twp-account-sso-identity {
        padding: 18px;
        border-radius: 13px;
    }

    .twp-account-sso-grid {
        grid-template-columns: 1fr;
    }

    .twp-account-sso-security-actions .button {
        width: 100%;
    }
}
