:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --bg: #f1f5f9;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #d97706;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #fff; /* backdrop behind the app column on tablet/desktop */
    color: var(--text);
    font-size: 15px;
}

h1, h2, h3 {
    font-weight: 600;
    font-size: 22px;
    margin: 0 0 .5rem;
}

a {
    color: var(--primary);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* ---------- App shell (mobile-app look at every screen size) ---------- */
.app-backdrop {
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

.app-shell {
   max-width: 480px;
    border-radius: 45px;
    MARGIN: 90px auto;
    max-height: 645px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 0 32px rgb(209 43 43 / 31%), 0 0 8px rgb(255 255 255);
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.public-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0rem 1rem;
    min-height: 55px;
    background: #fff;
    border-bottom: 1px solid var(--border);
}
.public-topbar nav{
    margin-bottom: 11px;
    position: absolute;
    top: 59px;
    display: none;
    color: #0f172a;
    font-weight: 600;
    margin-top: 5px;
    font-size: 22px;
    left: 393px;
}
.brand-right-main .logo-rista{
    height: auto;
    width: auto;
}
.brand-left,
.brand-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.logo-campus {
       height: 29px;
    width: 125px;
    object-fit: contain;
}

.logo-rista {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.public-topbar .brand {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.public-topbar nav a {
   position: relative;
    top: 5px;
    color: #b3242a;
}
.public-topbar nav .muted {
   position: relative;
    top: 5px;
    color: #b3242a;
}
.toolbar h1{
        font-size: 15px !important;
}
.public-main {
       background: #fff;
    /* flex: 1; */
    margin-bottom: 0px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}
.public-shell{
          width: 100%;
    max-width: 480px;
    border-radius: 45px;
    MARGIN: 90px auto;
    max-height: 645px;
    background: #fff;
    box-shadow: 0 0 32px rgb(209 43 43 / 31%), 0 0 8px rgb(255 255 255);
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;

}

.public-Loginbar{
        display: flex;
    align-items: center;
    border-radius: 48px 48px 0px 0px;
    justify-content: space-between;
    padding: 0rem 1rem;
    background: #fff;
    flex-direction: column-reverse;

}
.public-Loginbar .logo-campus{
          height: auto;
    width: 200px;
    object-fit: contain;
}
.public-Loginbar .logo-rista{
    height: 200px;
    width: auto;
}

.partner-logo{
        width: 125px;
    object-fit: contain;
    height: 55px;
}
.public-footer {
      text-align: center;
    border-radius: 0px 0px 48px 48px;
    color: var(--muted);
    padding: 1rem;
    background: #fff;
    font-size: .75rem;
}

/* ---------- Cards / layout ---------- */
.card {
        background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgb(0 0 0 / 41%);
}

    .card + .card {
        margin-top: 1.25rem;
    }

.page-pad {
    padding: 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
}

.grid {
    display: grid;
    gap: 1rem;
}

/* ---------- Forms ---------- */
label {
    display: block;
    font-size: .85rem;
    color: var(--muted);
    margin: .6rem 0 .25rem;
}

.input, input[type=text], input[type=password], input[type=tel], input[type=email], input[type=number], input[type=date], select, textarea {
    width: 100%;
    padding: .6rem .7rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: .95rem;
    background: #fff;
    color: var(--text);
}

textarea {
    min-height: 90px;
    resize: vertical;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border: none;
    border-radius: 8px;
    padding: .55rem 1rem;
    font-size: .9rem;
    cursor: pointer;
    background: var(--primary);
    color: #fff;
}

    .btn:hover {
        background: var(--primary-dark);
    }

    .btn:disabled {
        opacity: .6;
        cursor: not-allowed;
    }

.btn-secondary {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
}

    .btn-secondary:hover {
        background: var(--bg);
    }

.btn-sm {
    padding: .35rem .65rem;
    font-size: .8rem;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 0;
}

/* ---------- Misc ---------- */
.badge {
    display: inline-block;
    padding: .15rem .55rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
}

    .badge.active, .badge.Approved, .badge.Completed {
        background: #dcfce7;
        color: var(--success);
    }

    .badge.draft, .badge.Pending, .badge.Submitted {
        background: #e0f2fe;
        color: #0369a1;
    }

    .badge.inactive, .badge.Expired, .badge.Rejected {
        background: #fee2e2;
        color: var(--danger);
    }

    .badge.upcoming, .badge.UnderReview {
        background: #fef3c7;
        color: var(--warning);
    }
.auth-card h1:focus,
.auth-card h1:focus-visible {
    outline: none;
    box-shadow: none;
}
.alert {
    padding: .7rem .9rem;
    border-radius: 8px;
    margin: .75rem 0;
    font-size: .9rem;
}

    .alert.error {
        background: #fee2e2;
        color: var(--danger);
    }

    .alert.success {
        background: #dcfce7;
        color: var(--success);
    }

    .alert.info {
        background: #e0f2fe;
        color: #0369a1;
    }

.muted {
    color: var(--muted);
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.right {
    display: flex;
    gap: .5rem;
    align-items: center;
}

.center {
    text-align: center;
}

.progress-track {
    height: 8px;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
    margin: .5rem 0 1rem;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    transition: width .2s;
}

.rating-row {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
}

.rating-btn {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    font-weight: 600;
}

    .rating-btn.selected {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
    }

.option-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: .3rem 0;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}
@media (min-width: 320px) and (max-width: 475px) {
    .logo-campus {
    height: 50px;
    }
    .logo-rista {
    height: 50px;
    }
    .public-topbar {
    padding: 0px 6px;
    min-height: 54px;
    }
    .public-main {
    padding: 90px 15px;
    }
    .card {
    box-shadow: 0 2px 8px rgb(0 0 0 / 41%);
}
.auth-card .card .btn{
    background: #b3242a;
    display: block;
}
.app-backdrop .public-main{
    padding: 0px;
}
.public-topbar {
    height: 52px;
    margin-bottom: 18px;;
}
.public-topbar nav{
 left: 144px;
}
.card {
    margin-bottom: 7px;
        padding: 9px 15px 15px 15px;
   
}
.auth-card {
    width: 90%;
}
.public-Loginbar
    .logo-campus {
        height: auto;
        width: 150px;
}
.public-Loginbar {
    border-radius: 0px 0px 0px 0px;
}
.public-footer {
    text-align: center;
    border-radius: 0px 0px 0px 0px;
}
.public-Loginbar .brand-left {
    padding-bottom: 13px;
}
    .brand-right-main .logo-rista {
        height: auto;
        width: 200px;
    }
    .public-shell {
    max-width: none;
        max-height: none;
        margin-top: 0px;
        border-radius: 0px;
            justify-content: center;
        margin-bottom: 0px;
    
    }
    .app-shell{
            border-radius: 0px;
                MARGIN: 0px auto;
                    justify-content: center;
                        max-height: none;
    }
}