/* ==================================================================
   IndustrialMint - Login Portals
   Extends register-profiles.css (hero, cards, foot band).
   Only the login-specific pieces live here.
   ================================================================== */

/* ------------------------------------------------------------------
   Section head - left aligned variant
   ------------------------------------------------------------------ */
.reg-section__head--left {
    text-align: left;
    max-width: 1120px;
    margin: 0 auto 20px;
    padding: 0 20px;
}

/* ------------------------------------------------------------------
   Welcome-back shortcut
   ------------------------------------------------------------------ */
.resume {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 1120px;
    margin: -18px auto 30px;
    padding: 12px 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 3px solid var(--im-teal);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.resume[hidden] {
    display: none;
}

.resume__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--im-teal-light);
    color: var(--im-teal);
}

.resume__icon .material-symbols-outlined {
    font-size: 21px;
}

.resume__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.resume__text strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}

.resume__text span {
    font-size: 13px;
    color: var(--ink-light);
}

.resume__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    border-radius: 9px;
    background: var(--im-teal);
    border: 1px solid var(--im-teal);
    color: var(--white);
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: background var(--transition), box-shadow var(--transition);
}

.resume__btn:hover {
    background: var(--im-teal-dark);
    border-color: var(--im-teal-dark);
    box-shadow: 0 4px 12px rgba(0, 128, 128, 0.28);
}

.resume__dismiss {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink-light);
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.resume__dismiss:hover {
    background: var(--paper);
    color: var(--ink);
}

.resume__dismiss .material-symbols-outlined {
    font-size: 18px;
}

/* ------------------------------------------------------------------
   Card action buttons
   ------------------------------------------------------------------ */
.profile-card__actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

.portal-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 14px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background var(--transition), border-color var(--transition),
        color var(--transition), box-shadow var(--transition);
}

.portal-btn--primary {
    background: var(--profile-color, var(--im-teal));
    border-color: var(--profile-color, var(--im-teal));
    color: var(--white);
}

.portal-btn--primary:hover {
    filter: brightness(0.92);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

.portal-btn--secondary {
    background: var(--white);
    border-color: var(--line);
    color: var(--ink);
}

.portal-btn--secondary:hover {
    border-color: var(--profile-color, var(--im-teal));
    color: var(--profile-color, var(--im-teal));
}

/* ------------------------------------------------------------------
   Internal-only section (Super Admin)
   ------------------------------------------------------------------ */
.reg-internal {
    max-width: 1120px;
    margin: 34px auto 0;
    padding: 0 20px;
}

.reg-internal > h2 {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-light);
    margin: 0 0 14px;
}

.profile-card--locked {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 18px 22px;
    border-style: dashed;
    background: var(--paper);
}

.profile-card--locked .profile-card__head {
    flex: 1;
    min-width: 0;
}

.profile-card--locked .profile-card__icon {
    background: var(--profile-color);
}

.profile-card--locked .profile-card__actions {
    margin-top: 0;
    flex: 0 0 190px;
}

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */
@media (max-width: 720px) {
    .reg-section__head--left,
    .reg-internal {
        padding: 0 16px;
    }

    .reg-internal {
        margin-top: 28px;
    }

    .resume {
        margin: -12px 16px 26px;
        flex-wrap: wrap;
    }

    .resume__text {
        flex-basis: calc(100% - 52px);
    }

    .resume__btn {
        flex: 1;
        justify-content: center;
    }

    .profile-card--locked {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-card--locked .profile-card__actions {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .portal-btn {
        padding: 11px 10px;
        font-size: 13px;
    }

    .profile-card__actions {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .portal-btn,
    .resume__btn,
    .resume__dismiss {
        transition: none;
    }
}
