
/* ── Cổng Thí sinh /thisinh ── */

.thisinh-auth-card {
    background: #ffffff;
    color: #1e293b;
}

.thisinh-page-title {
    color: #0f172a;
    font-weight: 700;
}

.thisinh-appbar-title {
    color: #ffffff;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.thisinh-appbar-subtitle {
    color: #94a3b8;
    font-size: 0.75rem;
    line-height: 1.2;
    max-width: min(420px, 55vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.thisinh-nfc-diff-row td {
    background-color: rgba(255, 193, 7, 0.12);
}

.thisinh-qr-reader {
    min-height: 280px;
    background: #0f172a;
}

.thisinh-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e40af 55%, #6d28d9 100%);
    color: #fff;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.thisinh-feature-card {
    transition: transform .2s ease, box-shadow .2s ease;
    cursor: pointer;
    height: 100%;
    background: #ffffff;
    color: #1e293b;
}

.thisinh-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.15);
}

.thisinh-readonly-field .mud-input-root {
    background-color: #f1f5f9;
}

/* Ảnh thẻ chuẩn 3×4 (cm) — khung cố định, không tràn layout */
.thisinh-avatar-frame {
    width: 135px;
    max-width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid #cbd5e1;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.thisinh-avatar-frame.thisinh-avatar-frame--2x3 {
    width: 84px;
    aspect-ratio: 2 / 3;
}

.thisinh-avatar-frame img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center top;
}

.thisinh-file-row {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
}

.thisinh-file-picker-label {
    cursor: pointer;
    display: inline-block;
}

.thisinh-file-picker-disabled {
    pointer-events: none;
    opacity: 0.6;
    display: inline-block;
}

.thisinh-nav-menu .mud-nav-link {
    border-radius: 8px;
    margin-bottom: 2px;
}

.thisinh-nav-menu .mud-nav-link.active {
    background: rgba(37, 99, 235, 0.25) !important;
}

/* Drawer text contrast */
.mud-drawer.thisinh-drawer .mud-nav-link {
    color: #e2e8f0;
}

.mud-drawer.thisinh-drawer .mud-nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 600px) {
    .thisinh-qr-reader { min-height: 220px; }

    .thisinh-appbar-subtitle {
        max-width: 40vw;
        font-size: 0.65rem;
    }

    .thisinh-avatar-frame {
        width: 108px;
    }

    .mud-container.thisinh-main {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

@media (max-width: 960px) {
    footer.thisinh-footer {
        height: auto !important;
        min-height: 28px;
        flex-wrap: wrap;
        padding: 4px 12px !important;
    }
}
