/*
 * GNPM_ACCOUNT_ACCESS_PAGE_STYLE_V1
 */

.account-access-page,
.account-access-page * {
    box-sizing: border-box;
}

.account-access-page {
    width: 100%;
    min-height: 100vh;
    padding: 0 0 90px;
    background: #f4f6fb;
    color: #0f172a;
    font-family:
        "Poppins",
        "Noto Sans Devanagari",
        "Nirmala UI",
        "Mangal",
        system-ui,
        sans-serif;
}

.account-access-device {
    width: 100%;
    max-width: 720px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 0 14px 35px;
}

.account-access-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 72px;
    margin: 0 -14px 16px;
    padding: 11px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
}

.account-access-back {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #0f172a;
    background: #f8fafc;
    text-decoration: none;
    font-size: 24px;
}

.account-access-topbar h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 650;
}

.account-access-topbar p {
    margin: 3px 0 0;
    color: #64748b;
    font-size: 11px;
    line-height: 1.4;
}

.account-access-login,
.account-access-card,
.account-access-info-card,
.account-access-panel {
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: #ffffff;
    box-shadow:
        0 12px 34px
        rgba(15, 23, 42, 0.055);
}

.account-access-login {
    padding: 30px 20px;
    text-align: center;
}

.account-access-login ion-icon {
    font-size: 42px;
    color: #dc2626;
}

.account-access-login h2 {
    margin: 10px 0 5px;
    font-size: 18px;
}

.account-access-login p {
    margin: 0 0 16px;
    color: #64748b;
    font-size: 12px;
}

.account-access-login a {
    min-height: 44px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #dc2626;
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 650;
}

.account-access-info-card {
    margin-bottom: 14px;
    padding: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.account-access-info-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #2563eb;
    background: #dbeafe;
    font-size: 23px;
}

.account-access-info-card strong {
    font-size: 13px;
    font-weight: 650;
}

.account-access-info-card p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 10.5px;
    line-height: 1.55;
}

.account-access-info-card.ineligible {
    border-color: #fecaca;
    background: #fff7f7;
}

.account-access-info-card.ineligible
.account-access-info-icon {
    color: #dc2626;
    background: #fee2e2;
}

.account-access-card {
    padding: 16px;
}

.account-access-card-head h2,
.account-access-section-heading h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 650;
}

.account-access-card-head p,
.account-access-section-heading p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 10.5px;
    line-height: 1.5;
}

.account-access-search {
    margin-top: 14px;
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;
    gap: 8px;
}

.account-access-search input {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    outline: none;
    background: #f8fafc;
    color: #0f172a;
    font: inherit;
    font-size: 11px;
}

.account-access-search input:focus {
    border-color: #dc2626;
    background: #ffffff;
    box-shadow:
        0 0 0 4px
        rgba(220, 38, 38, 0.08);
}

.account-access-search button,
.account-access-action {
    min-height: 42px;
    border: 0;
    border-radius: 13px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    background: #dc2626;
    color: #ffffff;
    font: inherit;
    font-size: 10.5px;
    font-weight: 650;
}

.account-access-tabs {
    margin: 15px 0;
    padding: 5px;
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 4px;
    border: 1px solid #e2e8f0;
    border-radius: 17px;
    background: #ffffff;
}

.account-access-tabs button {
    min-width: 0;
    min-height: 46px;
    border: 0;
    border-radius: 13px;
    padding: 6px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    background: transparent;
    color: #64748b;
    font: inherit;
    font-size: 9.5px;
    font-weight: 600;
}

.account-access-tabs button span {
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    font-size: 9px;
}

.account-access-tabs button.active {
    background: #dc2626;
    color: #ffffff;
}

.account-access-tabs button.active span {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.account-access-panel {
    display: none;
    padding: 16px;
}

.account-access-panel.active {
    display: block;
}

.account-access-section-heading {
    margin-bottom: 12px;
}

.account-access-section-heading.second {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}

.account-access-list {
    display: grid;
    gap: 10px;
}

.account-access-search
+ .account-access-list {
    margin-top: 12px;
}

.account-access-person {
    min-width: 0;
    padding: 12px;
    display: grid;
    grid-template-columns:
        46px minmax(0, 1fr);
    gap: 11px;
    border: 1px solid #e2e8f0;
    border-radius: 17px;
    background: #f8fafc;
}

.account-access-person img {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    object-fit: cover;
    background: #e2e8f0;
}

.account-access-person-main {
    min-width: 0;
}

.account-access-name-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.account-access-name-row strong {
    min-width: 0;
    overflow: hidden;
    color: #0f172a;
    font-size: 12px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-access-name-row ion-icon {
    flex: 0 0 auto;
    color: #2563eb;
    font-size: 16px;
}

.account-access-person-meta {
    margin: 3px 0 0;
    color: #64748b;
    font-size: 9.5px;
    line-height: 1.45;
}

.account-access-person-message {
    margin: 7px 0 0;
    color: #334155;
    font-size: 10px;
    line-height: 1.5;
}

.account-access-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.account-access-action.secondary {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
}

.account-access-action.danger {
    background: #991b1b;
}

.account-access-action:disabled,
.account-access-search button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.account-access-empty {
    padding: 18px 12px;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    color: #64748b;
    background: #f8fafc;
    text-align: center;
    font-size: 10.5px;
    line-height: 1.55;
}

.account-access-toast {
    position: fixed;
    right: 18px;
    bottom: 85px;
    left: 18px;
    z-index: 80;
    max-width: 420px;
    margin: 0 auto;
    padding: 12px 15px;
    border-radius: 14px;
    background: #0f172a;
    color: #ffffff;
    box-shadow:
        0 18px 50px
        rgba(15, 23, 42, 0.25);
    text-align: center;
    font-size: 11px;
    font-weight: 600;
}

@media (max-width: 440px) {
    .account-access-search {
        grid-template-columns: 1fr;
    }

    .account-access-search button {
        width: 100%;
    }

    .account-access-tabs button {
        font-size: 8.6px;
    }
}
