/* Bhojan login page — standalone (no jQuery Mobile) */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body.bhojan-login-body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background-color: #f3f4f6;
    background-image:
        radial-gradient(ellipse 90% 55% at 50% -5%, rgba(210, 30, 30, 0.14) 0%, transparent 55%),
        linear-gradient(180deg, #fafafa 0%, #eef1f5 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #111;
    -webkit-text-size-adjust: 100%;
}

.bhojan-login-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px 88px;
}

.bhojan-login-card {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    text-align: center;
    padding: 28px 20px 24px;
}

.bhojan-login-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(210, 30, 30, 0.18);
    object-fit: cover;
    display: block;
    margin: 0 auto 16px;
}

.bhojan-login-title {
    margin: 0 0 14px;
    font-size: clamp(1.15rem, 4vw, 1.45rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.01em;
}

.bhojan-login-hint {
    margin: 0 0 18px;
    padding: 0 4px;
    color: #555;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

.bhojan-login-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px 14px;
    margin: 0 0 14px;
    font-size: 14px;
    text-align: left;
}

.bhojan-login-form {
    margin: 0;
    padding: 0 4px;
}

.bhojan-login-field {
    display: block;
    width: 100%;
    height: 50px;
    margin: 0 0 12px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    color: #111;
    font-size: clamp(1rem, 3.5vw, 1.25rem);
    text-align: center;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.bhojan-login-field::placeholder {
    color: #9ca3af;
}

.bhojan-login-field:focus {
    border-color: #111;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.bhojan-login-submit {
    display: block;
    width: 100%;
    height: 50px;
    margin: 4px 0 0;
    padding: 0 16px;
    border: none;
    border-radius: 4px;
    background: #d21e1e;
    color: #fff;
    font-size: clamp(1.05rem, 3.5vw, 1.3rem);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
    -webkit-appearance: none;
    appearance: none;
}

.bhojan-login-submit:hover {
    background: #b91a1a;
}

.bhojan-login-submit:active {
    transform: scale(0.99);
}

.bhojan-login-submit:disabled {
    opacity: 0.75;
    cursor: wait;
}

.bhojan-login-loading {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.55);
}

.bhojan-login-loading[hidden] {
    display: none !important;
}

.bhojan-login-loading__panel {
    width: min(360px, 100%);
    background: #fff;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.bhojan-login-loading__spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 14px;
    border: 3px solid #e5e7eb;
    border-top-color: #d21e1e;
    border-radius: 50%;
    animation: bhojan-login-spin 0.8s linear infinite;
}

.bhojan-login-loading__title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

.bhojan-login-loading__text {
    margin: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.45;
}

.bhojan-login-loading__slow {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
    font-size: 13px;
    line-height: 1.4;
}

.bhojan-login-loading__slow[hidden] {
    display: none !important;
}

@keyframes bhojan-login-spin {
    to {
        transform: rotate(360deg);
    }
}

.bhojan-login-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.bhojan-login-support-link {
    display: inline-block;
    margin: 0;
    padding: 6px 8px;
    border: none;
    background: none;
    color: #5b6cff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    -webkit-appearance: none;
    appearance: none;
}

.bhojan-login-support-link:hover {
    text-decoration: underline;
    color: #3f51e8;
}

.bhojan-login-support-modal {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: none !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.bhojan-login-support-modal[hidden] {
    display: none !important;
}

.bhojan-login-support-modal.is-open {
    display: flex !important;
}

.bhojan-login-support-modal.is-open[hidden] {
    display: flex !important;
}

.bhojan-login-support-modal__backdrop {
    position: absolute;
    inset: 0;
    border: none;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.bhojan-login-support-modal__panel {
    position: relative;
    z-index: 1;
    width: min(380px, 100%);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
    padding: 18px 18px 16px;
    text-align: left;
}

.bhojan-login-support-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
}

.bhojan-login-support-modal__header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #111;
}

.bhojan-login-support-modal__close {
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.bhojan-login-support-modal__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bhojan-login-support-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8f9fa;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.bhojan-login-support-card:hover {
    background: #eef2ff;
}

.bhojan-login-support-card__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fee2e2;
    color: #d21e1e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.bhojan-login-support-card__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.bhojan-login-support-card__label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.bhojan-login-support-card__value {
    font-size: 15px;
    font-weight: 700;
    color: #1a56db;
    word-break: break-all;
}

.bhojan-login-support-modal__done {
    display: block;
    width: 100%;
    margin-top: 14px;
    height: 42px;
    border: none;
    border-radius: 8px;
    background: #d21e1e;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.bhojan-login-support-modal__done:hover {
    background: #b91a1a;
}

.bhojan-login-powered {
    display: inline-block;
    margin: 0;
    color: #6b7280;
    font-size: 13px;
    text-decoration: underline;
}

.bhojan-login-powered:hover {
    color: #111;
}

@media (max-width: 380px) {
    .bhojan-login-card {
        padding: 22px 14px 20px;
    }

    .bhojan-login-logo {
        width: 120px;
        height: 120px;
    }
}
