﻿*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: #3c4044;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

button {
    font-family: inherit;
    border: none;
    cursor: pointer;
    background: none;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ============ TOKENS ============ */
:root {
    --primary: #519e8a;
    --primary-soft: #e1f1ec;
    --primary-dark: #3d7a69;
    --text-main: #3c4044;
    --text-muted: rgba(60, 64, 68, 0.7);
    --danger: #f27b7b;
    --border-soft: rgba(60, 64, 68, 0.15);
    --bg-surface: #ffffff;
    --bg-page: linear-gradient(to left, rgba(81, 158, 138, 0.04), rgba(81, 158, 138, 0.04)), #ffffff;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.08);
    --transition-fast: 0.2s ease;
}

/* ============ LAYOUT: HEADER ============ */
header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.header-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    width: 80px;
    height: 40px;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 14px;
    font-weight: 500;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
    color: var(--text-main);
}

    .nav-link span.arrow {
        font-size: 14px;
        opacity: 0.7;
    }

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    border-radius: 999px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
}

    .btn-primary:hover {
        background: var(--primary-dark);
        transform: translateY(-1px);
    }

.btn-ghost {
    background: rgba(81, 158, 138, 0.08);
    color: var(--text-main);
    border-width: 0;
    box-shadow: #000000 0px 0px 0px 0px;
}

    .btn-ghost:hover {
        background: rgba(81, 158, 138, 0.16);
    }

/* Mobile menu icon */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 24px;
    height: 20px;
    justify-content: center;
}

    .hamburger span {
        height: 2px;
        border-radius: 999px;
        background: #519E8A;
    }

/* Keep nav items in one row and hide overflow; collapse to hamburger when needed */
.nav {
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
}

.nav-collapsed {
    display: none !important;
}

.hamburger-show {
    display: flex !important;
}

/* Mobile dropdown when hamburger toggled */
.nav.mobile-open {
    position: absolute;
    right: 24px;
    top: calc(100% + 8px);
    background: #ffffff;
    color: var(--text-main);
    flex-direction: column;
    padding: 10px 12px;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    min-width: 200px;
    z-index: 40;
}

    .nav.mobile-open .nav-link {
        padding: 8px 10px;
        color: var(--text-main);
        display: block;
    }

@media (max-width: 900px) {
    .nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

/* ============ PAGE WRAPPER ============ */
main {
    background: var(--bg-page);
    min-height: calc(100vh - 64px);
}

.page-shell {
    max-width: none;
    width: 100%;
    margin: 0;
    margin-top: 30px;
}

/* ============ PAGE SWITCHING ============ */
.screen {
    display: none;
}

    .screen.active {
        display: grid;
        width: 100%;
        justify-content: space-between;
    }

/* ============ SIGN‑IN LAYOUT ============ */
.screen-signin {
    grid-template-columns: 50% 50%;
    align-items: center;
    min-height: calc(100vh - 64px);
    height: calc(100vh - 64px);
    width: 100vw;
    background: #ffffff;
}

.signin-left {
    background: #ffffff;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: auto;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 32px;
}

.signin-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
    text-align: center;
}

.signin-sub {
    font-size: 14px;
    color: var(--text-muted);
}

.form-grid-1 {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 0;
    width: 100%;
}

.field-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 500;
}

    .field-label-row a {
        font-weight: 500;
        color: #2565F1;
        font-size: 12px;
    }

.forgot-password {
    font-size: 12px;
    font-weight: 500;
    color: #2565F1;
    display: inline-block;
    text-decoration: none;
}

    .forgot-password:hover {
        text-decoration: underline;
    }

.field-label {
    font-size: 14px;
    font-weight: 500;
}

.field-required {
    color: #FF8652;
    margin-left: 2px;
}

.input,
.select {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border-soft);
    padding-left: 12px;
    font-size: 14px;
    line-height: 1.4;
    font-family: inherit;
    height: 48px;
    min-height: 48px;
    box-sizing: border-box;
    outline: none;
    background: #ffffff;
    transition: border var(--transition-fast), box-shadow var(--transition-fast);
    display: inline-flex;
    align-items: center;
}

.select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('assets/keyboard-arrow-down.png');
    background-repeat: no-repeat;
    /* Position arrow at the right */
    background-position: right 12px center;
    /* Slightly larger arrow */
    background-size: 10px 6px;
    /* Extra padding-right for arrow, padding-left for 'grap'/gap */
    padding-right: 44px;
    cursor: pointer;
    color: var(--text-main);
}

    .select:required:invalid {
        color: rgba(60, 64, 68, 0.5);
    }

    .select option {
        padding: 12px;
        background: #ffffff;
        color: var(--text-main);
    }

    .input:focus,
    .select:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(81, 158, 138, 0.12);
    }

.input::placeholder {
    color: #9CA3AF;
}

/* ensure inputs inside flag wrapper stretch to match height */
.field-flag-wrapper {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px;
    padding-left: 12px;
    height: 48px;
    box-sizing: border-box;
}

    .field-flag-wrapper > input {
        height: 100%;
        border: none;
        padding: 0 8px;
        font-size: 14px;
        line-height: 1.4;
        background: transparent;
        outline: none;
        box-sizing: border-box;
    }

.field-flag-wrapper {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px;
    padding-left: 12px;
}

.flag-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #ffffff;
    font-size: 12px;
}

    .flag-pill img {
        width: 16px;
        height: 10px;
        border-radius: 2px;
        object-fit: cover;
    }

.btn-block {
    width: 100%;
    border-radius: 999px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 500;
}

.btn-block-primary {
    background: #519e8a;
    color: #ffffff;
    border: none;
}

.signin-footer {
    margin-top: 12px;
    font-size: 14px;
}

    .signin-footer a {
        color: #2565F1;
        font-weight: 500;
    }

.divider-h {
    height: 1px;
    background: rgba(60, 64, 68, 0.16);
    margin: 24px 0 18px;
}

.qr-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    margin-top: 24px;
}

.qr-text-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    text-align: center;
}

.qr-text-sub {
    font-size: 14px;
    color: var(--text-muted);
}

.qr-box {
    width: 180px;
    height: 180px;
    border-radius: 16px;
    border: 1px solid rgba(60, 64, 68, 0.12);
    padding: 12px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============ RIGHT FEATURE PANE (signin & signup) ============ */
/* ============ RIGHT SIDEBAR (FEATURES) ============ */
.card-right {
    background: #519e8a;
    border-radius: 32px 0 0 32px;
    color: white;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    height: 100%;
    padding: 48px 0px;
}

    /* Subtle background pattern */
    .card-right::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
        pointer-events: none;
    }

    /* Decorative brand icon (low-opacity) */
    .card-right::after {
        content: '';
        position: absolute;
        right: -40px;
        bottom: -40px;
        width: 240px;
        height: 240px;
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        opacity: 0.06;
        pointer-events: none;
    }

.card-right-header {
    position: relative;
    z-index: 2;
    margin-bottom: 25px;
    padding: 12px 50px;
    /* added padding to give header breathing room */
}

.feature-main-title {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0;
}

/* ============ DESKTOP ACCORDION LIST ============ */
.feature-list {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0;
    /* create continuous list look */
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    z-index: 2;
    height: 100%;
}

    .feature-list::-webkit-scrollbar {
        display: none;
    }

.feature-item {
    display: flex;
    flex-direction: column;
    padding: 16px 20px 16px 48px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.feature-head {
    display: flex;
    align-items: center;
    gap: 25px;
}

.f-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
}

    .f-icon img {
        width: 24px;
        height: 24px;
        display: block;
        object-fit: contain;
        opacity: 0.7;
        transition: transform 0.2s ease, opacity 0.2s ease;
        filter: brightness(0) invert(1);
        position: relative;
        z-index: 1;
        /* Ensure icons are white */
    }

    /* small circular background behind the icon (5% white) */
    .f-icon::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        width: 50px;
        height: 50px;
        transform: translate(-50%, -50%) scale(0.95);
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.05);
        opacity: 0;
        transition: opacity 0.3s ease, transform 0.3s ease;
        z-index: 0;
    }

/* show the subtle white circle when the feature item is active */
.feature-item.active .f-icon::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.feature-title-text {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 50px;
    opacity: 0.7;
}

/* Hidden Description (Collapsed State) */
.feature-desc {
    max-height: 0;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.6;
    opacity: 0;
    color: rgba(255, 255, 255, 0.9);
    margin-left: 36px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ============ ACTIVE STATE (EXPANDED) ============ */
.feature-item.active {
    opacity: 1;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    border-left: 4px solid #ffffff;
    padding: 16px 20px;
    border-radius: 0;
}

    .feature-item.active .f-icon {
        border-color: white;
        opacity: 1;
    }

    .feature-item.active .feature-title-text {
        opacity: 1;
    }

    .feature-item.active .f-icon svg {
        opacity: 1;
        fill: var(--primary);
    }

    .feature-item.active .feature-desc {
        max-height: 200px;
        opacity: 1;
        margin-top: 12px;
        margin-left: 60px;
        font-size: 16px;
        line-height: 1.5;
        text-align: justify;
    }

/* Mobile slider adjustments (kept near original dot style) */
.mobile-dots {
    display: none;
}

@media (max-width: 1024px) {

    /* Tablet: vertical slider with left-side dot navigation */
    .card-right {
        padding: 30px 24px;
        height: auto;
        min-height: 400px;
        justify-content: space-between;
        box-sizing: content-box;
    }

    .feature-list {
        flex-direction: column;
        overflow-y: auto;
        scroll-snap-type: y mandatory;
        scroll-behavior: smooth;
        gap: 12px;
        margin: 0;
        padding: 0 0 0 0;
        -ms-overflow-style: none;
        scrollbar-width: none;
        max-height: calc(100% - 80px);
    }

        .feature-list::-webkit-scrollbar {
            display: none;
        }

    .feature-item {
        min-height: 160px;
        scroll-snap-align: start;
        opacity: 1;
        border: none;
        padding: 14px 10px;
        background: transparent !important;
        box-shadow: none !important;
    }

    .feature-desc {
        max-height: none;
        opacity: 1;
        margin-left: 0;
        margin-top: 12px;
        font-size: 15px;
    }

    .feature-item.active {
        padding: 14px 10px;
        border: none;
    }

    .f-icon {
        display: flex;
    }

    .feature-title-text {
        font-size: 18px;
    }

    /* Left-side vertical dots – positioned inside the card */
    .mobile-dots {
        display: flex;
        flex-direction: column;
        gap: 10px;
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 3;
        padding: 8px;
    }

    .dot {
        width: 6px;
        height: 6px;
        background: rgba(255, 255, 255, 0.4);
        border-radius: 10px;
        transition: all 0.3s ease;
    }

        .dot.active {
            height: 36px;
            /* taller active indicator */
            width: 8px;
            background: #ffffff;
            border-radius: 8px;
        }
}

/* ============ FREE SIGN‑UP PAGE ============ */
.screen-signup {
    grid-template-columns: 48% 48%;
    min-height: calc(100vh - 64px);
    height: calc(100vh - 64px);
    width: 100vw;
    align-items: stretch;
}

.signup-left-card {
    background: #ffffff;
    padding: 40px 56px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    overflow-y: auto;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
    padding: 0px;
    border-radius: 0px 32px 32px 0px;
    justify-content: center;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.role-cards {
    display: grid;
    grid-template-columns: repeat(2, 274px);
    gap: 26px;
    justify-content: center;
}

.role-card {
    border-radius: 20px;
    border: 1px solid rgba(60, 64, 68, 0.16);
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #ffffff;
    cursor: pointer;
    transition: box-shadow var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), background var(--transition-fast);
    height: 340px;
    overflow: hidden;
}

.role-card--primary {
    border-width: 2px;
    border-color: var(--primary);
    background: rgba(81, 158, 138, 0.06);
}

.role-card:hover {
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.09);
    transform: translateY(-2px);
}

.role-image {
    width: 187px;
    height: 187px;
    border-radius: 0;
    object-fit: contain;
    margin-top: 13px;
}

.role-card-content {
    padding: 0 22px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.role-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.6;
}

.role-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    text-align: center;
}

@media (min-width: 1025px) {
    .role-cards {
        grid-template-columns: repeat(2, 200px);
        gap: 12px;
        justify-content: center;
    }

    .role-card {
        height: 240px;
        border-radius: 12px;
    }

    .role-image {
        width: 88px;
        height: 88px;
        margin-top: 6px;
    }

    .role-card-content {
        padding: 0 12px 8px;
        gap: 6px;
    }

    .role-title {
        font-size: 14px;
    }

    .role-card:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.06);
        transform: translateY(-1px);
    }

    .role-title {
        font-size: 18px;
    }

    .role-desc {
        text-align: center;
    }

    .card-right {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

        .card-right .feature-item.active {
            align-self: stretch;
            width: 100%;
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;
            padding-left: 36px;
        }
}

.signup-cta {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

.btn-lg {
    padding: 11px 28px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
}

.signup-inline-text {
    font-size: 14px;
}

    .signup-inline-text a {
        color: #2565F1;
        font-weight: 500;
    }

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 40;
    backdrop-filter: blur(5px);
}

    .overlay.active {
        display: flex;
    }

.modal {
    width: 100%;
    max-width: 960px;
    max-height: calc(100vh - 80px);
    background: #ffffff;
    border-radius: 26px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    display: none;
    flex-direction: column;
}

    .modal.active {
        display: flex;
    }

.modal-header {
    padding: 20px 28px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 4px;
    transition: background 0.2s ease;
}

    .modal-close:hover {
        background: rgba(60, 64, 68, 0.1);
    }

    .modal-close .close-icon {
        width: 20px;
        height: 20px;
        object-fit: contain;
    }

.modal-divider {
    height: 1px;
    background: rgba(60, 64, 68, 0.2);
}

.modal-body {
    padding: 18px 28px 16px;
    overflow-y: auto;
}

.section-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    background: linear-gradient(to right, rgba(238, 246, 244, 1), #ffffff);
    color: black;
    padding: 8px 12px;
    border-radius: 4px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 12px;
}

    .checkbox-row input {
        width: 14px;
        height: 14px;
        accent-color: rgb(81, 158, 138);
    }

    .checkbox-row a {
        color: #2565F1;
        font-weight: 500;
    }

.modal-footer {
    padding: 14px 28px 18px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid rgba(60, 64, 68, 0.08);
}

.btn-text-danger {
    background-color: var(--danger);
    font-weight: 500;
    color: #fff;
    padding: 11px 28px;
}

.modal--reset {
    max-width: 540px;
}

.double-field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.or-separator {
    margin: 8px 0;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}


@media (max-width: 1024px) {
    .page-shell {
        padding-inline: 24px;
    }

    .screen-signin,
    .screen-signup {
        grid-template-columns: 1fr;
        gap: 0;
        height: auto;
        min-height: auto;
    }

        .screen-signin .signin-left {
            max-width: 100%;
            box-shadow: none;
            border-radius: 0;
            padding: 24px 28px;
        }

        .screen-signin .card-right,
        .screen-signup .card-right {
            grid-column: 1 / -1;
            grid-row: 2;
            border-radius: 24px;
            margin: 24px;
            height: auto;
        }

    .signup-left-card {
        padding: 28px;
        height: auto;
    }

    .role-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .role-card {
        height: auto;
        min-height: 280px;
    }

    .role-image {
        width: 140px;
        height: 140px;
    }

    .modal {
        max-width: 720px;
    }

    .card-right {
        padding: 20px 16px;
        min-height: 280px;
    }

    .feature-list {
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 12px;
        margin: 0 -12px;
        padding: 12px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

        .feature-list::-webkit-scrollbar {
            display: none;
        }

    .feature-item {
        min-width: 100%;
        min-height: auto;
        scroll-snap-align: start;
        opacity: 1;
        border: none;
        padding: 10px 12px;
        background: transparent !important;
        box-shadow: none !important;
    }

    .feature-desc {
        max-height: none;
        opacity: 1;
        margin-left: 0;
        margin-top: 6px;
        font-size: 13px;
        line-height: 1.5;
    }

    .feature-item.active {
        padding: 10px 12px;
        border: none;
        background: transparent !important;
    }

    .f-icon {
        display: flex;
    }

    .feature-title-text {
        font-size: 16px;
    }

    .mobile-dots {
        display: flex;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 4;
        gap: 6px;
        padding: 4px 10px;
        border-radius: 999px;
        top: auto;
        bottom: 20px;
        flex-direction: row;
    }

    .qr-block {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 24px;
        margin-top: 24px;
        text-align: left;
    }

    .qr-box {
        width: 120px;
        height: 120px;
        flex-shrink: 0;
    }

    .dot {
        width: 8px;
        height: 8px;
        background: rgba(255, 255, 255, 0.5);
        border-radius: 10px;
        transition: all 0.25s ease;
    }

        .dot.active {
            width: 28px;
            height: 8px;
            background: #ffffff;
            border-radius: 8px;
        }
}

/* Mobile (320px - 768px) */
@media (max-width: 768px) {
    .page-shell {
        padding: 0;
    }

    .screen-signin,
    .screen-signup {
        grid-template-columns: 1fr;
        height: auto;
        min-height: auto;
    }

    .signin-left {
        max-width: 100%;
        box-shadow: none;
        border-radius: 0;
        padding: 16px 15px;
    }

    .signup-left-card {
        padding: 16px 15px;
        border-radius: 0;
        box-shadow: none;
    }

    .signin-title,
    .page-title {
        font-size: 20px;
    }

    .role-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .role-card {
        height: auto;
        min-height: auto;
        flex-direction: row;
        padding: 16px;
        gap: 16px;
        text-align: left;
    }

    .role-image {
        width: 80px;
        height: 80px;
        margin-top: 0;
    }

    .role-card-content {
        align-items: flex-start;
        padding: 0;
    }

    .role-title {
        font-size: 14px;
        text-align: left;
    }

    .role-desc {
        font-size: 12px;
        text-align: left;
    }

    .qr-block {
        margin-top: 16px;
    }

    .qr-box {
        width: 140px;
        height: 140px;
    }

    .card-right {
        box-sizing: content-box;
    }

    .f-icon {
        width: 28px;
        height: 28px;
    }

        .f-icon img {
            width: 18px;
            height: 18px;
        }

        .f-icon::before {
            width: 22px;
            height: 22px;
            transform: translate(-50%, -50%) scale(0.9);
        }

    .feature-desc,
    .feature-item.active .feature-desc {
        margin-left: 0 !important;
    }

    .qr-block {
        display: none;
    }

    .overlay {
        align-items: flex-end;
    }

    .modal {
        max-width: 100%;
        max-height: 88vh;
        border-radius: 24px 24px 0 0;
    }

    .modal--reset {
        max-width: 100%;
    }

    .modal-header {
        padding-inline: 20px;
    }

    .modal-body,
    .modal-footer {
        padding-inline: 20px;
    }

    .modal-footer {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }

        .modal-footer .btn {
            flex: 1;
            display: flex;
            justify-content: center;
        }

    .header-inner {
        padding-inline: 16px;
    }

    .header-actions .btn {
        padding-inline: 14px;
        font-size: 14px;
    }

    .card-right-header {
        display: none;
    }
}

@media (max-width: 767px) {
    .form-grid-2,
    .double-field-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 430px) {

    .signin-title,
    .page-title {
        font-size: 20px;
        text-align: center;
    }

    .right-pane-title {
        font-size: 20px;
    }
}

input[type="file"] {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    height: 48px;
    padding: 0 12px;
    box-sizing: border-box;
    vertical-align: middle;
    background: transparent;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    line-height: 48px; /* ensure the browser's file-name text is vertically centered */
    font-size: 14px;
    color: var(--text-main);
    gap: 24px;
}

    /* WebKit / Blink native upload button */
    input[type="file"]::-webkit-file-upload-button {
        height: 24px;
        min-height: 24px;
        padding: 0 10px;
        margin: 0;
        border: none;
        background: rgba(229, 229, 229, 1);
        color: var(--text-main);
        border-radius: 8px;
        margin-right: 12px;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 24px;
    }

    /* Modern browsers file selector button */
    input[type="file"]::file-selector-button {
        height: 24px;
        min-height: 24px;
        padding: 0 10px;
        margin: 0;
        border: none;
        background: rgba(229, 229, 229, 1);
        color: var(--text-main);
        border-radius: 5px;
        margin-right: 12px;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 24px;
    }

    /* Keep behavior consistent when file input uses the .input utility class */
    input[type="file"].input {
        height: 48px;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        padding: 0 12px;
        border-radius: 5px;
        color: var(--text-muted);
    }

/* Ensure the no-file-chosen text appears muted in supported browsers */
input[type="file"] {
    color: var(--text-muted);
    border-radius: 5px;
}

/* Override: increase left padding for feature items for better breathing room */
.card-right .feature-item {
    padding-left: 48px !important;
}

/* Desktop: make the active feature item have extra left padding */
@media (min-width: 1025px) {
    .card-right .feature-item.active {
        padding-left: 48px !important;
    }
}

/* Desktop-specific QR and right-card adjustments */
@media (min-width: 900px) {


    aside.card-right {
        padding-left: 5px;
    }
}

/* Mobile & tablet: enlarge active feature icon background */
@media (max-width: 1024px) {
    .feature-item.active .f-icon::before {
        height: 30px;
        width: 30px;
    }
}

/* Tablet: remove bottom margin from the feature header (All-in-One Logistics Platform) */
@media (max-width: 1024px) {
    .card-right-header {
        margin-bottom: 0 !important;
    }
}

@media (min-width: 1025px) {
    .screen-signup .page-title,
    .signup-left-card .page-title {
        text-align: center;
    }
}

.shadow {
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
    padding: 50px;
    border-radius: 30px;
}

.sign-up-shadow {
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
    padding: 50px 25px;
    border-radius: 30px;
}
