/*
 * OurClassMate brand lockup — shared across landing, auth and registration.
 *
 * Two variants of one mark:
 *   image  → the full PNG lockup. Its wordmark is navy, so light surfaces only.
 *   text   → circular mark + typeset wordmark. Recolourable, so it survives dark surfaces.
 *
 * Size with --lockup-h (image) or --lockup-mark (text) on the element itself.
 */

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.72rem;
    min-width: 0;
    color: #102070;
    text-decoration: none;
}

.brand-lockup__image {
    display: block;
    height: var(--lockup-h, 54px);
    width: auto;
    max-width: 100%;
    flex-shrink: 0;
    object-fit: contain;
    transform-origin: center;
}

.brand-lockup__mark {
    width: var(--lockup-mark, 42px);
    height: var(--lockup-mark, 42px);
    border-radius: 50%;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(16, 23, 51, 0.12));
    transform-origin: center;
}

.brand-lockup__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    line-height: 1;
}

.brand-lockup__name {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: nowrap;
    font-size: var(--lockup-name, 1.12rem);
    font-weight: 800;
    letter-spacing: 0;
    color: #102070;
}

.brand-lockup__name-accent { color: #D95F00; }

.brand-lockup__sub {
    margin-top: 0.18rem;
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(16, 32, 112, 0.58);
    white-space: nowrap;
}

/* Dark surfaces: the navy wordmark would disappear, so recolour the typeset variant. */
.brand-lockup--on-dark { color: #fff; }
.brand-lockup--on-dark .brand-lockup__mark { filter: none; }
.brand-lockup--on-dark .brand-lockup__name { color: #fff; }
.brand-lockup--on-dark .brand-lockup__name-accent { color: #FF9A40; }
.brand-lockup--on-dark .brand-lockup__sub { color: rgba(255, 255, 255, 0.56); }

a.brand-lockup:hover .brand-lockup__name-accent { color: #FF7A00; }

/* Centred stack, for auth pages that sit the lockup above a card. */
.brand-lockup--center { display: flex; justify-content: center; }

/* Dark flat-PNG lockup (icon + wordmark baked in) with the sub-label stacked
   underneath, indented to roughly land under the wordmark rather than the icon. */
.brand-lockup__stack { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.brand-lockup__sub--indent { margin-left: calc(var(--lockup-h, 54px) * 1.15); }

@media (max-width: 640px) {
    .brand-lockup__sub { display: none; }
}
