/* portable succotash main starts*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", -apple-system, system-ui, sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    padding: 16px;
}

.card {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 44px 48px;
    width: 100%;
    max-width: 440px;
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.logo svg {
    width: 24px;
    height: 24px;
}

.logo span {
    font-size: 18px;
    font-weight: 700;
    color: #242424;
    letter-spacing: -0.3px;
}

h1 {
    font-size: 24px;
    font-weight: 600;
    color: #242424;
    margin-bottom: 8px;
}

.desc {
    font-size: 14px;
    color: #616161;
    line-height: 1.5;
    margin-bottom: 32px;
}

/* ── Primary blue button ── */
.primary-btn {
    display: block;
    /* width: fit-content; */
    min-width: 180px;
    margin: 0 auto;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    background: #0067b8;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.primary-btn:hover {
    background: #005a9e;
}

.primary-btn:active {
    background: #004c87;
}

.primary-btn:disabled {
    background: #c8c8c8;
    cursor: default;
}

/* ── Code section ── */
.code-area {
    display: none;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e8e8e8;
}

.code-area.show {
    display: block;
}

.code-label {
    font-size: 13px;
    color: #616161;
    margin-bottom: 10px;
}

.code-value {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 8px;
    margin-right: -8px;
    color: #242424;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 16px;
    font-family: "Consolas", "Courier New", monospace;
    user-select: all;
    transition: opacity 0.3s ease;
    word-break: break-all;
}

/* Copy + Verify stack */
.action-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.copy-btn {
    width: fit-content;
    min-width: 180px;
    padding: 10px 16px;
    border: 1px solid #8a8a8a;
    border-radius: 4px;
    background: #fff;
    color: #242424;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.copy-btn:hover {
    background: #f5f5f5;
    border-color: #616161;
}

.verify-id-btn {
    width: fit-content;
    min-width: 180px;
    padding: 11px 16px;
    border: none;
    border-radius: 4px;
    background: #0067b8;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.verify-id-btn:hover {
    background: #005a9e;
}

.verify-id-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Timer */
.timer {
    margin-top: 12px;
    font-size: 12px;
    color: #a0a0a0;
}

.timer.expired {
    color: #c62828;
}

/* Refresh button — shown only on expiry */
.refresh-btn {
    display: none;
    margin-top: 12px;
    width: 100%;
    padding: 10px 20px;
    border: 1px solid #0067b8;
    border-radius: 4px;
    background: #fff;
    color: #0067b8;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.refresh-btn:hover {
    background: #e8f0fa;
}

.refresh-btn.show {
    display: block;
}

.status-msg {
    margin-top: 10px;
    font-size: 12px;
    color: #a0a0a0;
    min-height: 16px;
}

.status-msg.error {
    color: #c62828;
}

.footer {
    margin-top: 28px;
    font-size: 11px;
    color: #a0a0a0;
}

/* ── Device Auth modal ("Enter code" look) ── */
.device-auth-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    z-index: 1000;
    align-items: flex-start;
    justify-content: center;
    padding: 90px 16px 16px;
    overflow-y: auto;
    animation: fadeOverlay 0.2s ease;
}

.device-auth-overlay.show {
    display: flex;
}

.device-auth-modal {
    background: #fff;
    width: 100%;
    max-width: 440px;
    padding: 44px 44px 36px;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.18);
    border-radius: 2px;
    position: relative;
}

.da-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
}

.da-logo svg {
    width: 24px;
    height: 24px;
}

.da-logo span {
    font-size: 16px;
    font-weight: 700;
    color: #242424;
    letter-spacing: -0.2px;
}

.device-auth-modal h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1b1b1b;
    margin-bottom: 14px;
}

.device-auth-modal .da-desc {
    font-size: 14px;
    color: #4a4a4a;
    line-height: 1.5;
    margin-bottom: 28px;
}

.da-field-label {
    font-size: 13px;
    color: #616161;
    margin-bottom: 4px;
}

.da-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #8a8a8a;
    outline: none;
    font-family: inherit;
    font-size: 15px;
    color: #1b1b1b;
    padding: 6px 0 8px;
    letter-spacing: 1px;
    background: transparent;
    transition: border-color 0.15s;
}

.da-input:focus {
    border-bottom-color: #0067b8;
}

.da-input.shake {
    animation: daShake 0.35s ease;
    border-bottom-color: #c62828;
}

@keyframes daShake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}

.da-error {
    font-size: 12px;
    color: #c62828;
    margin-top: 8px;
    min-height: 16px;
}

.da-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 22px;
}

.da-next-btn {
    background: #0067b8;
    color: #fff;
    border: none;
    padding: 9px 34px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.15s;
}

.da-next-btn:hover {
    background: #005a9e;
}

.da-next-btn:active {
    background: #004c87;
}

.da-next-btn:disabled {
    background: #c8c8c8;
    cursor: default;
}

@keyframes fadeOverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ── Success overlay ── */
.success-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    align-items: center;
    justify-content: center;
    z-index: 1100;
    animation: fadeOverlay 0.25s ease;
    padding: 16px;
}

.success-overlay.show {
    display: flex;
}

.success-box {
    background: #fff;
    border-radius: 8px;
    padding: 40px 36px;
    text-align: center;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    animation: popIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
    from {
        transform: scale(0.85);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
}

.success-box h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a7f37;
    margin-bottom: 8px;
}

.success-box p {
    font-size: 13px;
    color: #616161;
    line-height: 1.5;
}

/* ── Mobile responsiveness ── */
@media (max-width: 520px) {
    body {
        padding: 12px;
        align-items: flex-start;
        padding-top: 24px;
    }

    .card {
        padding: 32px 22px;
        border-radius: 4px;
    }

    .logo {
        margin-bottom: 24px;
    }

    .logo svg {
        width: 20px;
        height: 20px;
    }

    .logo span {
        font-size: 16px;
    }

    h1 {
        font-size: 20px;
    }

    .desc {
        font-size: 13px;
        margin-bottom: 24px;
    }

    .primary-btn {
        font-size: 14px;
        padding: 12px 16px;
    }

    .code-area {
        margin-top: 22px;
        padding-top: 20px;
    }

    .code-value {
        font-size: 24px;
        letter-spacing: 6px;
        margin-right: -6px;
        padding: 14px 10px;
    }

    .copy-btn,
    .verify-id-btn,
    .refresh-btn {
        font-size: 13px;
    }

    /* Device auth modal on mobile */
    .device-auth-overlay {
        padding: 24px 12px 16px;
        align-items: flex-start;
    }

    .device-auth-modal {
        padding: 32px 22px 26px;
        border-radius: 4px;
    }

    .da-logo svg {
        width: 20px;
        height: 20px;
    }

    .da-logo span {
        font-size: 15px;
    }

    .device-auth-modal h2 {
        font-size: 19px;
        margin-bottom: 12px;
    }

    .device-auth-modal .da-desc {
        font-size: 13px;
    }

    .da-input {
        font-size: 16px;
        /* prevents iOS zoom */
    }

    .da-next-btn {
        width: 100%;
        padding: 11px 20px;
    }

    .da-actions {
        justify-content: stretch;
    }

    .success-box {
        padding: 32px 22px;
    }

    .success-box h2 {
        font-size: 18px;
    }
}

@media (max-width: 360px) {
    .card {
        padding: 26px 16px;
    }

    h1 {
        font-size: 18px;
    }

    .code-value {
        font-size: 20px;
        letter-spacing: 5px;
        margin-right: -5px;
        padding: 12px 8px;
    }

    .device-auth-modal {
        padding: 24px 16px 20px;
    }

    .device-auth-modal h2 {
        font-size: 17px;
    }
}

/* portable succotash main ends*/

/* scaling succotash main start*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #f2f2f2;
    display: flex;
    flex-direction: column
}

.topbar {
    background: #000;
    padding: 14px 5%;
    display: flex;
    align-items: center
}

.topbar svg {
    height: 24px;
    width: 24px;
    fill: #fff
}

.main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px 16px
}

.panel {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border: 1px solid #d8d8d8;
    padding: 32px 8%
}

h1 {
    font-size: 21px;
    font-weight: 600;
    color: #333;
    margin-bottom: 22px
}

label {
    display: block;
    font-size: 13px;
    color: #333;
    margin: 16px 0 5px
}

input[type=email],
input[type=password] {
    width: 100%;
    padding: 11px 12px;
    font-size: 16px;
    border: 1px solid #c4c4c4;
    border-radius: 2px;
    background: #fff
}

input:focus {
    outline: none;
    border-color: #0b6fb4;
    box-shadow: 0 0 0 2px rgba(11, 111, 180, .25)
}

.forgot {
    display: inline-block;
    font-size: 13px;
    color: #0b6fb4;
    text-decoration: none;
    margin-top: 12px
}

.forgot:hover {
    text-decoration: underline
}

.err {
    display: none;
    background: #fdecea;
    color: #b71c1c;
    border: 1px solid #f5c6cb;
    border-radius: 2px;
    font-size: 13px;
    padding: 10px;
    margin: 14px 0
}

button {
    margin-top: 24px;
    width: 100%;
    max-width: 200px;
    display: block;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #0b6fb4;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background .15s ease
}

button:hover {
    background: #095a94
}

button:active {
    background: #084b7e
}

button:disabled {
    background: #8ab4d8;
    cursor: not-allowed
}

.loading {
    display: none;
    margin-top: 14px;
    font-size: 13px;
    color: #6a737d
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #d1d5da;
    border-top-color: #0b6fb4;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    vertical-align: -2px;
    margin-right: 6px
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

/* ---- Pre-login "Connecting..." splash ---- */
.splash {
    position: fixed;
    inset: 0;
    background: #f2f2f2;
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px
}

.splash .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #d1d5da;
    border-top-color: #0b6fb4
}

.splash .msg {
    font-size: 15px;
    color: #555;
    font-weight: 500
}

@media (max-width:480px) {
    .main {
        padding: 20px 10px
    }

    .panel {
        padding: 24px 6%;
        border: none
    }

    .topbar {
        padding: 14px 16px
    }

    h1 {
        font-size: 19px
    }

    button {
        max-width: 100%
    }
}

@media (max-width:340px) {
    .panel {
        padding: 20px 5%
    }
}



/* scaling succotash main ends*/