/* ============================================ */
/* TOKEN FORM PAGE - SMART QUEUE THEME          */
/* ============================================ */

/* --- Background & Viewport --- */
.login-viewport {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background: linear-gradient(135deg, #f0f7fa 0%, #e0ecf0 50%, #d4e4e8 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-sizing: border-box;
}

.mesh-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(26, 122, 130, 0.06) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(26, 122, 130, 0.04) 0%, transparent 40%);
    filter: blur(60px);
    z-index: 1;
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

/* --- The Token Card --- */
.token-main-wrapper {
    z-index: 10;
    padding: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
}

.token-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(11, 46, 51, 0.06);
    border-radius: 24px;
    padding: 30px 28px 32px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 50px rgba(11, 46, 51, 0.06);
    text-align: center;
    box-sizing: border-box;
}

.token-header {
    margin-bottom: 20px;
}

.token-logo {
    height: 70px;
    width: auto;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 15px rgba(26, 122, 130, 0.1));
}

.token-title {
    color: #0a2a3a;
    font-weight: 800;
    font-size: 1.6rem;
    margin-bottom: 2px;
}

.token-subtitle {
    color: #3a5a6a;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* --- Inputs --- */
.input-container {
    text-align: left;
    margin-bottom: 16px;
}

.input-label {
    color: #0a2a3a !important;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: block;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.input-label .optional-tag {
    color: #6a8a95;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.token-input {
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1.5px solid rgba(11, 46, 51, 0.08) !important;
    color: #0a2a3a !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    width: 100%;
    transition: all 0.3s ease;
    outline: none;
    font-size: 14px;
    box-sizing: border-box;
}

.token-input:focus {
    border-color: #1a7a82 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(26, 122, 130, 0.08) !important;
}

.token-input::placeholder {
    color: #6a8a95 !important;
    opacity: 1 !important;
    font-weight: 400;
    font-size: 13px;
}

/* --- Generate Button --- */
.btn-token-generate {
    background: linear-gradient(135deg, #0b2e33, #1a5a63);
    color: #ffffff;
    width: 100%;
    height: 50px;
    border-radius: 14px;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
    box-shadow: 0 8px 25px rgba(11, 46, 51, 0.12);
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
}

.btn-token-generate:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(11, 46, 51, 0.18);
}

.btn-token-generate:active {
    transform: scale(0.98);
}

.btn-token-generate:disabled {
    cursor: wait;
    transform: none;
    opacity: 0.7;
}

/* --- Alert Messages --- */
.alert {
    border-radius: 12px;
    padding: 10px 16px;
    margin-bottom: 16px;
    font-weight: 600;
    text-align: center;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(26, 122, 130, 0.08);
    border: 1px solid rgba(26, 122, 130, 0.12);
    color: #1a7a82;
}

.alert-danger {
    background: rgba(255, 75, 43, 0.08);
    border: 1px solid rgba(255, 75, 43, 0.12);
    color: #b03030;
}

/* --- Validation --- */
.validation-error {
    color: #b03030;
    font-size: 12px;
    margin-top: 4px;
    font-weight: 600;
    text-align: left;
}

.d-none {
    display: none !important;
}

/* ============================================ */
/* ✅ RESPONSIVE FIXES (SIRF MOBILE KE LIYE)     */
/* ============================================ */

@media (max-width: 576px) {
    .token-main-wrapper {
        padding: 15px;
        align-items: flex-start;
        padding-top: 30px;
    }

    .token-card {
        padding: 24px 18px 28px;
        border-radius: 18px;
        max-width: 100%;
    }

    .token-logo {
        height: 55px;
    }

    .token-title {
        font-size: 1.3rem;
    }

    .token-subtitle {
        font-size: 0.8rem;
    }

    .input-container {
        margin-bottom: 14px;
    }

    .input-label {
        font-size: 11px;
    }

    .token-input {
        padding: 11px 14px !important;
        font-size: 13.5px;
    }

    .token-input::placeholder {
        font-size: 12.5px;
    }

    .btn-token-generate {
        height: 46px;
        font-size: 0.82rem;
        letter-spacing: 0.8px;
    }

    .validation-error {
        font-size: 11px;
    }
}

/* Choti screens (iPhone SE) */
@media (max-width: 380px) {
    .token-card {
        padding: 20px 15px 24px;
    }

    .token-title {
        font-size: 1.15rem;
    }

    .token-input {
        padding: 10px 12px !important;
        font-size: 13px;
    }

    .btn-token-generate {
        height: 44px;
        font-size: 0.78rem;
    }
}