/* ============================================================
   Home Portal Selector & Get Password Modal
   Unified with dashboard design language
   ============================================================ */

:root {
    --lh-primary:    var(--primary, #e74c3c);
    --lh-secondary:  var(--secondary, #3b82f6);
    --lh-radius:     16px;
    --lh-radius-sm:  10px;
    --lh-shadow:     0 4px 24px rgba(0,0,0,.12);
    --lh-shadow-lg:  0 12px 40px rgba(0,0,0,.18);
    --lh-border:     #e4e8ef;
    --lh-bg:         #f1f4f8;
    --lh-surface:    #ffffff;
    --lh-text:       #1a2233;
    --lh-muted:      #6b7280;
    --lh-transition: .2s ease;
}


/* ============================================================
   PORTAL SELECTOR (authenticated home)
   ============================================================ */

section.two.content {
    height: calc(100vh - 58px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
}

.content.two .cards,
.content .cards {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 24px;
    flex-wrap: wrap;
    height: auto;
    width: 100%;
    max-width: 900px;
    margin: auto;
}

/* Portal card */
.content .card.scale {
    border: none !important;
    border-radius: var(--lh-radius) !important;
    overflow: hidden;
    box-shadow: var(--lh-shadow) !important;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
    background: var(--lh-surface) !important;
    color: var(--lh-text) !important;
    min-width: 220px;
}
.content .card.scale:hover {
    transform: translateY(-6px);
    box-shadow: var(--lh-shadow-lg) !important;
}

/* Icon area */
.content .card .top {
    padding: 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.content .card .top::after {
    content: "";
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
}

.content .card .top.one {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
}
.content .card .top.two {
    background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
}
.content .card .top.three {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.content .card .top i {
    font-size: 40px;
    color: rgba(255,255,255,.92);
    position: relative;
    z-index: 1;
}
.content .card .top.flx {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.content .card .top i.gear {
    font-size: 16px;
    position: static;
    transform: none;
    top: auto;
    left: auto;
    opacity: .75;
}

/* Text area */
.content .card .text {
    text-align: center;
    padding: 18px 16px 20px;
    background: var(--lh-surface);
}
.content .card .text h1 {
    font-size: 22px;
    font-weight: 800;
    color: var(--lh-text);
    margin-bottom: 4px;
    letter-spacing: -.3px;
}
.content .card .text p {
    font-size: 12px;
    font-weight: 500;
    color: var(--lh-muted);
    margin: 0;
}


/* ============================================================
   GET PASSWORD MODAL
   ============================================================ */

#getpassword_mdl .modal-dialog {
    max-width: 420px;
    margin: 100px auto;
}
#getpassword_mdl .modal-content {
    border: none !important;
    border-radius: var(--lh-radius) !important;
    box-shadow: var(--lh-shadow-lg);
    overflow: hidden;
}
#getpassword_mdl .modal-header {
    background: linear-gradient(135deg, var(--lh-primary) 0%, color-mix(in srgb, var(--lh-primary) 70%, #000) 100%);
    color: #fff;
    border-bottom: none;
    padding: 16px 20px;
}
#getpassword_mdl .modal-header .modal-title {
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
#getpassword_mdl .modal-header .modal-title i { font-size: 16px; }

#getpassword_mdl .modal-body {
    padding: 24px 20px 8px;
    background: var(--lh-surface);
}
#getpassword_mdl .modal-body input.form-control {
    border-radius: var(--lh-radius-sm) !important;
    border: 1px solid var(--lh-border) !important;
    padding: 10px 14px !important;
    font-size: 13px;
    box-shadow: none !important;
    transition: border-color var(--lh-transition), box-shadow var(--lh-transition);
}
#getpassword_mdl .modal-body input.form-control:focus {
    border-color: var(--lh-secondary) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--lh-secondary) 12%, transparent) !important;
}

#getpassword_mdl .modal-footer {
    border-top: 1px solid var(--lh-border);
    padding: 14px 20px;
    background: #fafbfd;
}
#getpassword_mdl .modal-footer #getpassword_btn {
    border-radius: var(--lh-radius-sm) !important;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 24px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}


/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .content.two .cards,
    .content .cards { gap: 16px; padding: 16px; }
    .content .card.scale { min-width: 160px; }
    .content .card .top { padding: 24px; }
    .content .card .text h1 { font-size: 18px; }
}

@media (max-width: 480px) {
    .content .card.scale { width: 100%; }
}
