/* ==========================================================================
   Mobilna aplikacija – Fizički razvoj (dopuna AdminUX teme)
   Optimizovano za telefon: veliki touch targeti, jednoručni rad, bez horizontalnog skrola
   ========================================================================== */

:root {
    /* Sistemski font – radi i bez interneta (tema inače očekuje Google fontove) */
    --adminuiux-content-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Open Sans", "Helvetica Neue", Arial, sans-serif;
    --adminuiux-content-font-weight: 400;
    --adminuiux-title-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Open Sans", "Helvetica Neue", Arial, sans-serif;
    --adminuiux-title-font-weight: 700;
    --m-primary: #0049e8;
    --m-primary-2: #4cbdff;
    --m-primary-soft: #e8efff;
    --m-bg: #f2f5fb;
    --m-card: #ffffff;
    --m-text: #1b2437;
    --m-muted: #6b7489;
    --m-border: #e3e8f2;
    --m-green: #2f9e5a;
    --m-green-soft: #e3f5ea;
    --m-yellow: #d99a00;
    --m-yellow-soft: #fff4d6;
    --m-red: #d9433b;
    --m-red-soft: #fde7e5;
    --m-header-h: 58px;
    --m-nav-h: 66px;
    --m-radius: 18px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html { -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Open Sans", "Helvetica Neue", Arial, sans-serif !important;
    background: var(--m-bg) !important;
    display: block !important;      /* tema postavlja flex, zbog čega se sadržaj širi van ekrana */
    color: var(--m-text);
    font-size: 16px;
    min-height: 100vh;
    padding-top: calc(var(--m-header-h) + var(--safe-top));
    padding-bottom: calc(var(--m-nav-h) + var(--safe-bottom) + 12px);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}
body.no-nav { padding-bottom: calc(var(--safe-bottom) + 12px); }
a { color: var(--m-primary); }
.m-main { max-width: 640px; width: 100%; min-width: 0; margin: 0 auto; padding: 12px 14px; }

/* ---------------- Header ---------------- */
.m-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
    height: calc(var(--m-header-h) + var(--safe-top));
    padding: var(--safe-top) 8px 0;
    display: flex; align-items: center; gap: 6px;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--m-border);
}
.m-header-title { flex: 1; min-width: 0; }
.m-header-title h1 { font-size: 17px; font-weight: 700; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-header-title p { font-size: 12px; color: var(--m-muted); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-header-btn {
    width: 44px; height: 44px; border-radius: 14px; border: 0; background: transparent;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 22px; color: var(--m-text); text-decoration: none; flex-shrink: 0;
}
.m-header-btn:active { background: var(--m-primary-soft); }
.m-header-btn.m-install { color: var(--m-primary); background: var(--m-primary-soft); font-size: 19px; }
.m-header-logo img { width: 36px; height: 36px; border-radius: 10px; margin: 0 6px 0 4px; }

/* ---------------- Donja navigacija ---------------- */
.m-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
    height: calc(var(--m-nav-h) + var(--safe-bottom));
    padding: 0 6px var(--safe-bottom);
    display: flex; align-items: stretch; justify-content: space-around;
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid var(--m-border);
    box-shadow: 0 -4px 18px rgba(20, 40, 90, .06);
}
.m-nav-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-decoration: none; color: var(--m-muted); font-size: 11px; font-weight: 600; min-width: 0;
}
.m-nav-icon { font-size: 22px; line-height: 1; margin-bottom: 4px; }
.m-nav-item.active { color: var(--m-primary); }
.m-nav-item.active .m-nav-icon i::before { font-weight: bold; }
.m-nav-center .m-nav-icon {
    width: 56px; height: 56px; margin-top: -26px; border-radius: 50%;
    background: linear-gradient(135deg, var(--m-primary), var(--m-primary-2));
    color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px;
    box-shadow: 0 6px 16px rgba(0, 73, 232, .35); border: 4px solid var(--m-bg);
}
.m-nav-center.active { color: var(--m-primary); }

/* ---------------- Kartice i liste ---------------- */
.m-card { background: var(--m-card); border-radius: var(--m-radius); box-shadow: 0 2px 10px rgba(20, 40, 90, .06); padding: 16px; margin-bottom: 14px; }
.m-card-title { font-size: 13px; font-weight: 700; color: var(--m-muted); text-transform: uppercase; letter-spacing: .4px; margin: 0 0 10px; }
.m-section-title { display: flex; align-items: center; justify-content: space-between; margin: 18px 2px 8px; }
.m-section-title h2 { font-size: 16px; font-weight: 700; margin: 0; }
.m-section-title a { font-size: 14px; font-weight: 600; text-decoration: none; }

.m-list { background: var(--m-card); border-radius: var(--m-radius); box-shadow: 0 2px 10px rgba(20, 40, 90, .06); overflow: hidden; margin-bottom: 14px; }
.m-item {
    display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px;
    border-bottom: 1px solid var(--m-border); color: var(--m-text); text-decoration: none; background: var(--m-card);
}
.m-item:last-child { border-bottom: 0; }
.m-item:active { background: #f5f8ff; }
.m-item-body { flex: 1; min-width: 0; }
.m-item-title { font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-item-sub { font-size: 13px; color: var(--m-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-item-end { text-align: right; flex-shrink: 0; font-size: 14px; }
.m-item .bi-chevron-right { color: #b6bdcc; }

.m-avatar {
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 15px; color: var(--m-primary); background: var(--m-primary-soft);
}
.m-avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.m-avatar.done { background: var(--m-green-soft); color: var(--m-green); }
.m-icon-tile {
    width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0; font-size: 20px;
    display: flex; align-items: center; justify-content: center; background: var(--m-primary-soft); color: var(--m-primary);
}

/* Kartice odeljenja */
.m-class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.m-class-card {
    background: var(--m-card); border-radius: var(--m-radius); padding: 16px 14px; text-decoration: none; color: var(--m-text);
    box-shadow: 0 2px 10px rgba(20, 40, 90, .06); display: block; position: relative; overflow: hidden;
}
.m-class-card .name { font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.m-class-card .meta { font-size: 13px; color: var(--m-muted); }
.m-class-card::after { content: ""; position: absolute; right: -18px; top: -18px; width: 70px; height: 70px; border-radius: 50%; background: var(--m-primary-soft); }
.m-hscroll { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.m-hscroll > * { flex: 0 0 130px; scroll-snap-align: start; }
.m-hscroll::-webkit-scrollbar { display: none; }

/* Hero (dashboard) */
.m-hero {
    background: linear-gradient(135deg, var(--m-primary), var(--m-primary-2)); color: #fff;
    border-radius: 22px; padding: 18px; margin-bottom: 14px; position: relative; overflow: hidden;
}
.m-hero::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.m-hero h2 { font-size: 22px; font-weight: 800; margin: 0 0 2px; }
.m-hero p { margin: 0; opacity: .9; font-size: 14px; }
.m-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; position: relative; z-index: 1; }
.m-stat { background: rgba(255, 255, 255, .16); border-radius: 14px; padding: 10px 8px; text-align: center; }
.m-stat b { display: block; font-size: 22px; line-height: 1.1; }
.m-stat span { font-size: 11px; opacity: .9; }

/* Install kartica */
.m-install-card { display: flex; align-items: center; gap: 12px; background: #fff; border: 2px dashed #b9cdfb; border-radius: var(--m-radius); padding: 12px 14px; margin-bottom: 14px; }
.m-install-card img { width: 46px; height: 46px; border-radius: 12px; }
.m-install-card .txt { flex: 1; font-size: 14px; }
.m-install-card .txt b { display: block; font-size: 15px; }

/* Dugmad */
.btn-xl { min-height: 56px; font-size: 18px; font-weight: 700; border-radius: 16px; }
.btn-lg { min-height: 50px; border-radius: 14px; font-weight: 600; }
.btn-soft { background: var(--m-primary-soft); color: var(--m-primary); border: 0; }
.btn-soft:active { background: #d5e2ff; }
.m-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.m-action {
    background: var(--m-card); border-radius: 16px; padding: 14px 6px; text-align: center; text-decoration: none; color: var(--m-text);
    font-size: 13px; font-weight: 600; box-shadow: 0 2px 10px rgba(20, 40, 90, .06);
}
.m-action i { display: block; font-size: 24px; color: var(--m-primary); margin-bottom: 6px; }
.m-fab {
    position: fixed; right: 16px; bottom: calc(var(--m-nav-h) + var(--safe-bottom) + 16px); z-index: 1020;
    height: 56px; padding: 0 22px; border-radius: 28px; border: 0; color: #fff; font-weight: 700; font-size: 16px;
    background: linear-gradient(135deg, var(--m-primary), var(--m-primary-2)); box-shadow: 0 8px 20px rgba(0, 73, 232, .35);
    display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
}
.m-fab:active { transform: scale(.97); color: #fff; }

/* Chipovi / segmenti */
.m-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.m-chips::-webkit-scrollbar { display: none; }
.m-chip {
    flex-shrink: 0; border: 1px solid var(--m-border); background: #fff; color: var(--m-text);
    border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.m-chip.active { background: var(--m-primary); color: #fff; border-color: var(--m-primary); }
.m-seg { display: flex; background: #e6ebf5; border-radius: 14px; padding: 4px; gap: 4px; margin-bottom: 14px; }
.m-seg a, .m-seg button, .m-seg label {
    flex: 1; text-align: center; padding: 10px 6px; border-radius: 11px; font-weight: 600; font-size: 14px;
    color: var(--m-muted); text-decoration: none; border: 0; background: transparent; margin: 0; cursor: pointer;
}
.m-seg .active, .m-seg input:checked + label { background: #fff; color: var(--m-text); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.m-seg input { display: none; }

/* Zone */
.m-zone { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.m-zone .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.m-zone-GREEN { background: var(--m-green-soft); color: var(--m-green); }
.m-zone-YELLOW { background: var(--m-yellow-soft); color: #9a6d00; }
.m-zone-RED, .m-zone-RED_LOW, .m-zone-RED_HIGH { background: var(--m-red-soft); color: var(--m-red); }
.m-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #eef1f7; color: var(--m-muted); }
.m-badge.ok { background: var(--m-green-soft); color: var(--m-green); }
.m-badge.warn { background: var(--m-yellow-soft); color: #9a6d00; }
.m-badge.info { background: var(--m-primary-soft); color: var(--m-primary); }

/* Progress */
.m-progress { height: 8px; background: #e8edf6; border-radius: 99px; overflow: hidden; }
.m-progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--m-primary), var(--m-primary-2)); border-radius: 99px; }
.m-progress.ok > span { background: var(--m-green); }

/* Forme */
.m-field { margin-bottom: 14px; }
.m-field label { display: block; font-size: 13px; font-weight: 700; color: var(--m-muted); margin-bottom: 6px; }
.m-input, .m-field .form-control, .m-field .form-select {
    min-height: 52px; font-size: 17px; border-radius: 14px; border: 1px solid var(--m-border); background: #fff; width: 100%; padding: 10px 14px;
}
.m-input:focus, .m-field .form-control:focus { border-color: var(--m-primary); box-shadow: 0 0 0 4px rgba(0, 73, 232, .12); outline: 0; }
.m-search { position: relative; margin-bottom: 12px; }
.m-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--m-muted); font-size: 18px; }
.m-search input { padding-left: 42px; }
.m-toggle-list label {
    display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; border-bottom: 1px solid var(--m-border); margin: 0; font-weight: 600;
}
.m-toggle-list label:last-child { border-bottom: 0; }
.m-toggle-list input[type=checkbox] { width: 24px; height: 24px; accent-color: var(--m-primary); flex-shrink: 0; }
.m-toggle-list small { display: block; font-weight: 400; color: var(--m-muted); }

/* Poruke */
.m-flash { border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; font-weight: 600; font-size: 14px; animation: flashIn .3s ease-out; }
.m-flash-success { background: var(--m-green-soft); color: #1e7442; }
.m-flash-info { background: var(--m-primary-soft); color: var(--m-primary); }
.m-flash-warning { background: var(--m-yellow-soft); color: #8a6200; }
.m-flash-error { background: var(--m-red-soft); color: #a52a23; }
@keyframes flashIn { from { opacity: 0; transform: translateY(-6px); } }
.m-toast {
    position: fixed; left: 50%; top: calc(var(--m-header-h) + var(--safe-top) + 10px); transform: translateX(-50%) translateY(-20px);
    z-index: 1060; background: #1b2437; color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 15px;
    opacity: 0; transition: all .25s; max-width: calc(100% - 32px); box-shadow: 0 8px 24px rgba(0, 0, 0, .2); pointer-events: none;
}
.m-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.m-toast.ok { background: var(--m-green); }
.m-toast.err { background: var(--m-red); }

.m-empty { text-align: center; padding: 40px 20px; color: var(--m-muted); }
.m-empty i { font-size: 48px; display: block; margin-bottom: 10px; color: #b6c3de; }

/* Bottom sheet */
.m-sheet-backdrop { position: fixed; inset: 0; background: rgba(10, 20, 40, .45); z-index: 1070; opacity: 0; pointer-events: none; transition: opacity .2s; }
.m-sheet-backdrop.show { opacity: 1; pointer-events: auto; }
.m-sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1080; max-height: 86vh; overflow-y: auto;
    background: #fff; border-radius: 22px 22px 0 0; padding: 8px 18px calc(18px + var(--safe-bottom));
    transform: translateY(105%); transition: transform .25s ease-out; max-width: 640px; margin: 0 auto;
}
.m-sheet.show { transform: translateY(0); }
.m-sheet-handle { width: 44px; height: 5px; border-radius: 3px; background: #d5dae5; margin: 4px auto 14px; }
.m-sheet h3 { font-size: 19px; font-weight: 800; }
.m-steps { counter-reset: s; padding: 0; list-style: none; }
.m-steps li { position: relative; padding: 8px 0 8px 40px; }
.m-steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 6px; width: 28px; height: 28px; border-radius: 50%; background: var(--m-primary-soft); color: var(--m-primary); font-weight: 800; text-align: center; line-height: 28px; }

/* ---------------- Unos rezultata ---------------- */
.e-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.e-top .m-progress { flex: 1; }
.e-top .count { font-weight: 800; font-size: 15px; white-space: nowrap; }
.e-students { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -14px; padding-left: 14px; padding-right: 14px; scroll-behavior: smooth; }
.e-students::-webkit-scrollbar { display: none; }
.e-st {
    flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; border: 2px solid transparent;
    background: #e8edf6; color: var(--m-muted); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center;
}
.e-st.done { background: var(--m-green-soft); color: var(--m-green); }
.e-st.other { background: #eef0f4; color: #8b93a5; }
.e-st.current { border-color: var(--m-primary); color: var(--m-primary); background: #fff; box-shadow: 0 0 0 3px rgba(0, 73, 232, .15); }
.e-card { background: #fff; border-radius: 22px; box-shadow: 0 4px 18px rgba(20, 40, 90, .08); padding: 16px; margin-bottom: 12px; }
.e-name { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.e-name h2 { font-size: 21px; font-weight: 800; margin: 0; line-height: 1.2; }
.e-name p { margin: 0; color: var(--m-muted); font-size: 14px; }
.e-status { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.e-status button {
    border: 1px solid var(--m-border); background: #fff; border-radius: 999px; padding: 9px 14px; font-size: 14px; font-weight: 700; color: var(--m-text);
}
.e-status button.active { background: var(--m-primary); color: #fff; border-color: var(--m-primary); }
.e-status button.more { color: var(--m-muted); }
.e-attempt { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.e-attempt .lbl { width: 30px; font-weight: 800; color: var(--m-muted); text-align: center; flex-shrink: 0; }
.e-input {
    flex: 1; min-width: 0; height: 64px; border-radius: 16px; border: 2px solid var(--m-border); text-align: center;
    font-size: 30px; font-weight: 800; color: var(--m-text); background: #fbfcff; padding: 0 10px;
}
.e-input:focus { border-color: var(--m-primary); outline: 0; background: #fff; box-shadow: 0 0 0 4px rgba(0, 73, 232, .12); }
.e-unit { font-weight: 700; color: var(--m-muted); width: 48px; flex-shrink: 0; }
.e-inv { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--m-border); background: #fff; color: var(--m-muted); font-size: 18px; }
.e-inv.on { background: var(--m-red-soft); color: var(--m-red); border-color: #f4b9b4; }
.e-attempt.invalid .e-input { text-decoration: line-through; color: #b0b6c3; }
.e-mmss { display: flex; align-items: center; gap: 6px; flex: 1; }
.e-mmss .e-input { flex: 1; }
.e-mmss b { font-size: 28px; color: var(--m-muted); }
.e-result { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #f6f8fc; border-radius: 16px; padding: 12px 14px; margin: 4px 0 12px; }
.e-result .val { font-size: 26px; font-weight: 800; }
.e-result .lbl { font-size: 12px; color: var(--m-muted); font-weight: 700; text-transform: uppercase; }
.e-result .m-zone { font-size: 14px; padding: 6px 12px; }
.e-ref { font-size: 13px; color: var(--m-muted); line-height: 1.7; }
.e-ref .m-zone { font-size: 12px; margin: 0 4px 4px 0; }
.e-prev { font-size: 14px; background: var(--m-primary-soft); color: var(--m-primary); border-radius: 12px; padding: 8px 12px; margin-bottom: 12px; }
.e-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; padding: 10px 14px calc(10px + var(--safe-bottom));
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--m-border); display: flex; gap: 10px; max-width: 640px; margin: 0 auto;
}
.e-bar .btn-nav { width: 56px; min-height: 56px; border-radius: 16px; font-size: 22px; flex-shrink: 0; }
.e-bar .btn-save { flex: 1; }
body.entry-page { padding-bottom: calc(96px + var(--safe-bottom)); }
.e-saved { text-align: center; font-weight: 700; color: var(--m-green); min-height: 22px; font-size: 14px; }

/* Karton */
.s-head { display: flex; align-items: center; gap: 14px; }
.s-head h2 { font-size: 21px; font-weight: 800; margin: 0; }
.s-head p { margin: 0; color: var(--m-muted); font-size: 14px; }
.s-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.s-tile { background: #f6f8fc; border-radius: 14px; padding: 10px 8px; text-align: center; }
.s-tile b { display: block; font-size: 19px; }
.s-tile span { font-size: 12px; color: var(--m-muted); }
.chart-box { position: relative; height: 220px; }
.change-up { color: var(--m-green); font-weight: 700; }
.change-down { color: #b37d00; font-weight: 700; }
.change-flat { color: var(--m-muted); }

/* Priručnik */
.m-manual h2 { font-size: 22px; font-weight: 800; }
.m-manual p, .m-manual li { font-size: 16px; line-height: 1.55; }
.m-manual table { font-size: 13px; }
.m-manual .label { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; color: #fff; }
.m-manual .label-danger { background: var(--m-red); }
.m-manual .label-success { background: var(--m-green); }
.m-manual .label-warning { background: var(--m-yellow); }
.m-manual .btn-default { border: 1px solid var(--m-border); border-radius: 12px; padding: 10px 14px; display: inline-block; text-decoration: none; }

/* Login */
body.login-page { padding: 0; background: linear-gradient(160deg, #0049e8 0%, #2a8cf5 55%, #4cbdff 100%) !important; }
.login-wrap { min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: var(--safe-top); }
.login-brand { text-align: center; color: #fff; padding: 40px 20px 28px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.login-brand img { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); margin: 0 auto 16px; }
.login-brand h1 { font-size: 26px; font-weight: 800; margin: 0; }
.login-brand p { opacity: .9; margin: 4px 0 0; }
.login-card { background: #fff; border-radius: 28px 28px 0 0; padding: 26px 20px calc(24px + var(--safe-bottom)); max-width: 520px; width: 100%; margin: 0 auto; }

@media (min-width: 700px) {
    .login-card { border-radius: 28px; margin-bottom: 40px; }
    .login-wrap { justify-content: center; }
    .login-brand { flex: 0; }
}
