/* User Type Selection Cards - Matches Login tab style (auth modal design system) */
/* Login selected tab: bg #ACD563, text #203669, font-medium (500), text-base (16px) */
/* Login hover: bg #EBF6D1 */

.user-type-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
}

.user-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    text-align: center;
    overflow: visible;
    min-width: 0;
    position: relative;
}

.user-type-card:hover {
    background: #EBF6D1;
    border-color: #ACD563;
}

.user-type-card.selected,
.user-type-card:focus-within {
    background: #ACD563;
    border-color: #ACD563;
}

/* Check icon on selected card - matches design system (#203669), RTL-aware position */
.user-type-card.selected::after,
.user-type-card:focus-within::after {
    content: '';
    position: absolute;
    inset-inline-end: 6px;
    top: 6px;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='none' stroke='%23203669' stroke-width='20' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='216 72 104 184 40 120'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.user-type-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.user-type-card-label {
    font-size: 16px;
    font-weight: 500;
    color: #203669;
    line-height: 1.3;
    width: 100%;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* Same font for selected and unselected - only background changes */
.user-type-card.selected .user-type-card-label,
.user-type-card:focus-within .user-type-card-label {
    color: #203669;
}

/* RTL support - proper text flow for Arabic and other RTL languages */
[dir="rtl"] .user-type-cards-grid {
    direction: rtl;
}
