/* ═══════════════════════════════════════════════════════════════
   ERP Login Hub — Skill India Digital style role picker
   ═══════════════════════════════════════════════════════════════ */

.erp-login-hub-modal {
    z-index: 1065 !important;
}

.erp-login-hub-dialog {
    max-width: 720px;
    width: calc(100% - 2rem);
}

.erp-login-hub-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.22);
    background: #fff;
}

.erp-login-hub-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

.erp-login-hub-logo {
    height: 42px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.erp-login-hub-close {
    opacity: 0.65;
}

.erp-login-hub-body {
    padding: 1.5rem 1.75rem 1.75rem;
}

.erp-login-hub-title {
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem;
    line-height: 1.35;
}

.erp-login-hub-subtitle {
    font-size: 0.92rem;
    color: #64748b;
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.erp-login-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
    align-items: stretch;
}

.erp-login-hub-card {
    position: relative;
    margin: 0;
    cursor: pointer;
    display: flex;
    height: 100%;
}

.erp-login-hub-radio {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #0b3d7c;
    cursor: pointer;
    z-index: 2;
}

.erp-login-hub-card-inner {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 116px;
    padding: 1rem 1rem 1rem 2.35rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.erp-login-hub-card:hover .erp-login-hub-card-inner,
.erp-login-hub-card.is-selected .erp-login-hub-card-inner {
    border-color: #0b3d7c;
    box-shadow: 0 8px 24px rgba(11, 61, 124, 0.12);
    background: #f8fbff;
}

.erp-login-hub-card-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.erp-login-hub-card-icon.tc { background: rgba(11, 61, 124, 0.1); color: #0b3d7c; }
.erp-login-hub-card-icon.aa { background: rgba(8, 145, 178, 0.12); color: #0891b2; }
.erp-login-hub-card-icon.ab { background: rgba(180, 83, 9, 0.12); color: #b45309; }
.erp-login-hub-card-icon.student { background: rgba(232, 93, 4, 0.12); color: #e85d04; }
.erp-login-hub-card-icon.admission { background: rgba(19, 136, 8, 0.1); color: #138808; }
.erp-login-hub-card-icon.exam { background: rgba(37, 99, 235, 0.1); color: #2563eb; }

.erp-login-hub-card-text {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.erp-login-hub-card-text strong {
    font-size: 0.95rem;
    color: #0f172a;
    line-height: 1.3;
}

.erp-login-hub-card-text span {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.45;
}

.erp-login-hub-terms {
    font-size: 0.78rem;
    color: #64748b;
    text-align: center;
    margin: 0 0 1rem;
    line-height: 1.5;
}

.erp-login-hub-terms a {
    color: #e85d04;
    font-weight: 600;
    text-decoration: none;
}

.erp-login-hub-terms a:hover {
    text-decoration: underline;
}

.erp-login-hub-continue {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.85rem 1.25rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #0b3d7c 0%, #1a5fad 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s, background 0.2s;
}

.erp-login-hub-continue:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.erp-login-hub-continue:not(:disabled):hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #072a57 0%, #0b3d7c 100%);
}

@media (max-width: 640px) {
    .erp-login-hub-grid {
        grid-template-columns: 1fr;
    }

    .erp-login-hub-body {
        padding: 1.25rem;
    }

    .erp-login-hub-card-inner {
        min-height: auto;
    }
}
